Skip to content

Commit 7dacb7e

Browse files
committed
feat(browser-tests): simplify, refactor, update dockerized browser node
1 parent 1625302 commit 7dacb7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3007
-6218
lines changed

.github/workflows/playwright.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88

99
env:
1010
NODE_JS: "22"
11-
EXAMPLE_TEMPLATE: "web-chat"
12-
EXAMPLE_NAME: "example"
13-
EXAMPLE_PORT: "8080"
1411
# Firefox in container fails due to $HOME not being owned by user running commands
1512
# more details https://github.com/microsoft/playwright/issues/6500
1613
HOME: "/root"
@@ -29,11 +26,8 @@ jobs:
2926

3027
- uses: ./.github/actions/npm
3128

32-
- name: Build browser container
33-
run: npm run build --workspace=@waku/headless-tests
34-
35-
- name: Build browser test environment
36-
run: npm run build --workspace=@waku/browser-tests
29+
- name: Build entire monorepo
30+
run: npm run build
3731

3832
- name: Run Playwright tests
3933
run: npm run test --workspace=@waku/browser-tests

Dockerfile

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ You can track progress on the [project board](https://github.com/orgs/waku-org/p
3737

3838
See [CONTRIBUTING.md](https://github.com/waku-org/js-waku/blob/master/CONTRIBUTING.md).
3939

40+
## Dockerized browser tests
41+
42+
Build and run the dockerized Playwright tests from `packages/browser-tests`:
43+
44+
```bash
45+
cd packages/browser-tests
46+
npm run docker:build
47+
HEADLESS_USE_CDN_IN_DOCKER=0 npx playwright test tests/docker-server.spec.ts
48+
```
49+
4050
## License
4151

4252
Licensed and distributed under either of

0 commit comments

Comments
 (0)