22
33Playwright end-to-end tests for OpenProject-Nextcloud-Keycloak integration.
44
5+
6+
57## Requirements
68
79- Node.js 18+
@@ -166,16 +168,6 @@ Local runs: put the above in `.env.local` (already gitignored). CI ignores this
166168**Playwright complains about missing browser executable?**
167169- Make sure you've run `npm run playwright:install` (or `npx playwright install`) after `npm install`.
168170- Re-run your test command, e.g. `npm run test:local`.
169-
170- ## Project Structure
171-
172- ```
173- e2e/
174- ├── tests/ # Test files by setup method
175- ├── pageobjects/ # Page Object Model classes
176- ├── locators/ # JSON locator definitions
177- ├── utils/ # Utilities (config, locator-resolver, etc.)
178- └── playwright.config.ts
179171```
180172
181173## More Information
@@ -185,23 +177,3 @@ e2e/
185177- Locators stored in JSON files
186178- See `e2e/utils/locators_guide.md` for locator usage examples
187179
188- ## GitHub Actions (CI)
189-
190- Workflow `.github/workflows/e2e.yml`:
191- - Trigger: push/PR to `dev`/`release`, or manual `workflow_dispatch`.
192- - Input `environment`: `edge`, `stage`, or `local`.
193- - Secrets required per env:
194- - Hosts: `E2E_EDGE_OPENPROJECT_HOST`, `E2E_EDGE_NEXTCLOUD_HOST`, `E2E_EDGE_KEYCLOAK_HOST` (and `E2E_STAGE_*`, `E2E_LOCAL_*` if used in CI)
195- - Versions: `E2E_EDGE_OPENPROJECT_VERSION`, `E2E_EDGE_NEXTCLOUD_VERSION`, `E2E_EDGE_INTEGRATION_APP_VERSION`, `E2E_EDGE_KEYCLOAK_VERSION` (stage/local variants as needed)
196- - Admin creds: `E2E_EDGE_OP_ADMIN_USER/PASS`, `E2E_EDGE_NC_ADMIN_USER/PASS`, `E2E_EDGE_KC_ADMIN_USER/PASS` (stage/local variants as needed)
197- - The workflow exports env vars and runs: `npx playwright test -- --env <env> [--grep ...]`.
198-
199- Local override example:
200- ```bash
201- OPENPROJECT_HOST=openproject.test \
202- NEXTCLOUD_HOST=nextcloud.test \
203- KEYCLOAK_HOST=keycloak.test \
204- SETUP_METHOD=sso-external \
205- E2E_OP_ADMIN_USER=admin E2E_OP_ADMIN_PASS=admin \
206- npm test -- --env local --grep @smoke
207- ```
0 commit comments