Skip to content

Commit a9f793f

Browse files
committed
Update docs
1 parent 0b34463 commit a9f793f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

documentation/E2E Testing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,18 @@ All commands can be run only for a specific package with Turbo filtering, for ex
3232
- Point `playwright.config.ts` to the shared base: `@infinum/configs/playwright/base`.
3333
- Reuse helpers from `@infinum/e2e-utils` (fixtures, waits, viewports, reports).
3434
- Keep snapshots and app-specific page objects inside that E2E app.
35+
- Give each new Next app a unique prod port when running `next start` (e.g. `-p 3001`) so it doesn’t clash with existing frontend apps.
36+
- Add `E2E_BASE_URL` for the new `apps/<app>-e2e` package, ideally inline before the command in `package.json`, e.g. `"e2e": "E2E_BASE_URL=http://localhost:3001 playwright test --reporter=html",`
3537

3638
## Consistency tips
3739

3840
- Generate and validate snapshots in headless for stable rendering; if you must use headed, regenerate and stay consistent.
3941
- Ensure `E2E_BASE_URL` is set when not using `http://localhost:3000`.
42+
43+
## Testing with Act
44+
45+
Run locally with [GitHub Act](https://github.com/nektos/act) from the repo root; ensure the apps default ports are free before starting.
46+
47+
```sh
48+
act pull_request -W ./.github/workflows/e2e.yml -j e2e
49+
```

0 commit comments

Comments
 (0)