porchlight/tests/e2e
Johan Lundberg 70c97233c5
fix(e2e): fix WebAuthn and integration test failures
- Use localhost instead of 127.0.0.1 as TARGET_URL so the WebAuthn RP ID
  is a valid domain (the spec forbids IP addresses)
- Replace request.post('/logout') with page.context().clearCookies() since
  Playwright's request fixture has a separate cookie jar from the page
- Add registerPasskey() helper that waits for 'load' event to reliably
  detect the page reload after successful registration
- Track credential count with getCredentialCount() since credentials
  accumulate across serial tests sharing the same database
- Fix login.spec.js selector from #webauthn-login-form to #webauthn-login-btn
  to match the actual template

All 57 E2E tests now pass (50 migrated + 7 WebAuthn).
2026-02-18 12:45:03 +01:00
..
.gitignore test: add end-to-end browser tests with Playwright 2026-02-16 12:22:58 +01:00
auth-guard.spec.js refactor(e2e): migrate all tests to Playwright Test 2026-02-18 11:37:23 +01:00
credentials.spec.js refactor(e2e): migrate all tests to Playwright Test 2026-02-18 11:37:23 +01:00
full-flow.spec.js fix(e2e): fix WebAuthn and integration test failures 2026-02-18 12:45:03 +01:00
health.spec.js refactor(e2e): migrate all tests to Playwright Test 2026-02-18 11:37:23 +01:00
login.spec.js fix(e2e): fix WebAuthn and integration test failures 2026-02-18 12:45:03 +01:00
package-lock.json feat: migrate e2e test infrastructure to @playwright/test 2026-02-18 11:10:23 +01:00
package.json feat: migrate e2e test infrastructure to @playwright/test 2026-02-18 11:10:23 +01:00
password-auth.spec.js refactor(e2e): migrate all tests to Playwright Test 2026-02-18 11:37:23 +01:00
playwright.config.js feat: migrate e2e test infrastructure to @playwright/test 2026-02-18 11:10:23 +01:00
registration.spec.js refactor(e2e): migrate all tests to Playwright Test 2026-02-18 11:37:23 +01:00
run.sh fix(e2e): fix WebAuthn and integration test failures 2026-02-18 12:45:03 +01:00
setup_db.py feat(e2e): add WebAuthn test user to fixture seeding 2026-02-18 11:47:11 +01:00
webauthn.spec.js fix(e2e): fix WebAuthn and integration test failures 2026-02-18 12:45:03 +01:00