Skip to content

Latest commit

 

History

History

e2e

README.md

E2E Integration Tests

Playwright for OpenProject / Nextcloud / Keycloak. Stack: root README.md. Conventions: .agents/shared/openproject-e2e.md.

Run (Docker only)

From e2e/ (no host browsers):

./run-tests.sh                          # or: npm run test:docker
./run-tests.sh --build --no-open-report # after lockfile/Dockerfile changes
E2E_ENV=local ./run-tests.sh --no-open-report --project=op-integration-tests tests/…

Local MCP: ./run-tests.sh reads MCP_OAUTH_TOKEN from opnc-secrets when unset. PullPreview: set E2E_ENV=pullpreview plus OPENPROJECT_HOST / NEXTCLOUD_HOST / KEYCLOAK_HOST, and secret-backed E2E_ADMIN_PASS / E2E_USER_PASS / MCP_OAUTH_TOKEN (or the per-role E2E_*_PASS vars). PullPreview refuses local default passwords (admin for admins, 1234 for alice/brian) when those env vars are missing. Then ./run-tests.sh --no-open-report ….

Optional .env.local; local TLS uses repo-root opnc-root-ca.crt when present. Agents: always Docker + --no-open-report.

Videos: UI projects only, retain-on-failure (HTML report under playwright-report/; not Squash). Off: E2E_VIDEO=off. MCP project has video off.

MCP / CI

Playwright MCP smoke tests/mcp/
LLM mcp-eval mcp-eval/ → .github/workflows/mcp-eval.yml
E2E CI .github/workflows/e2e.yml
Squash npm run squash:publish (SQUASH_TM_API_TOKEN, SQUASH_TM_ITERATION_ID)