You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-43Lines changed: 3 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Playwright E2E tests for OpenProject, Nextcloud, and Keycloak integration.
4
4
5
5
## Requirements
6
6
7
-
- Docker (for Docker-based runs), or Node.js 18+ and npm (for native runs)
7
+
- Docker (for Docker-based runs), or Node.js (see `.node-version`) and npm for native runs
8
8
- Integration cluster via [opf/integration-qa-helmfile](https://github.com/opf/integration-qa-helmfile)
9
9
10
10
## Quick Start
@@ -21,47 +21,7 @@ npm run playwright:install
21
21
E2E_ENV=local npx playwright test
22
22
```
23
23
24
-
## Running Tests
25
-
26
-
### Docker
27
-
28
-
```bash
29
-
./run-tests.sh # local, all tests
30
-
E2E_ENV=edge ./run-tests.sh # edge environment
31
-
E2E_ENV=stage ./run-tests.sh # stage environment
32
-
./run-tests.sh --grep @smoke # filter by tag
33
-
./run-tests.sh --build # force image rebuild
34
-
./run-tests.sh --no-open-report # skip opening report in browser after run
35
-
```
36
-
37
-
Report opens on your machine after the run. Each run writes to `playwright-report/run-YYYY-MM-DD_HH-mm-ss/` (report in `report/`, plus `results.json`, `junit.xml`). Traces/screenshots/videos stay in `test-results/`. Config is mounted so changes to `playwright.config.ts` apply without rebuilding the image; use `--build` only when deps or Dockerfile change.
38
-
39
-
Credentials and host overrides go in `.env.local` (gitignored, loaded automatically). If `opnc-root-ca.crt` is in the project root it is mounted and used automatically for self-signed CA.
40
-
41
-
### Native
42
-
43
-
```bash
44
-
E2E_ENV=local npx playwright test
45
-
E2E_ENV=edge npx playwright test
46
-
E2E_ENV=stage npx playwright test
47
-
npx playwright test --headed
48
-
npx playwright test --workers 4
49
-
npx playwright show-report
50
-
npm run test:e2e:report # run tests then open report (native)
51
-
```
52
-
53
-
npm shortcuts: `npm run test:local`, `test:edge`, `test:stage`, `test:docker`, `report:show`.
54
-
55
-
**Report:** Docker: report opens automatically after `./run-tests.sh` (or open `playwright-report/index.html`). Native: `npm run report:show` serves at http://localhost:9323 (bound to 0.0.0.0).
56
-
57
-
### Tags
58
-
59
-
```bash
60
-
npx playwright test --grep @smoke
61
-
npx playwright test --grep "@smoke|@regression"
62
-
```
63
-
64
-
Tags in use: `@smoke`, `@regression`, `@integration`.
24
+
For more run options (envs, tags, report), see `.cursor/skills/tests/SKILL.md`.
65
25
66
26
## Environment Variables
67
27
@@ -79,4 +39,4 @@ Tags in use: `@smoke`, `@regression`, `@integration`.
79
39
|`E2E_WORKERS`| Worker count |`1`|
80
40
|`SETUP_JOB_CHECK`| Wait for K8s setup-job |`false`|
81
41
82
-
Put variables in `.env.local` for local runs.
42
+
Put variables in `.env.local` for local runs. Place `opnc-root-ca.crt` in the project root for self-signed CA.
0 commit comments