porchlight/tests
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
..
e2e fix(e2e): fix WebAuthn and integration test failures 2026-02-18 12:45:03 +01:00
test_auth_routes refactor: fix lint warnings in webauthn login tests 2026-02-17 13:46:02 +01:00
test_authn feat: require discoverable credentials and prefer user verification in WebAuthnService 2026-02-17 13:18:46 +01:00
test_invite update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_manage chore: create package structure with src layout 2026-02-12 14:39:07 +01:00
test_oidc update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_store refactor: extract open_db() context manager from lifespan 2026-02-16 15:41:15 +01:00
__init__.py chore: create package structure with src layout 2026-02-12 14:39:07 +01:00
conftest.py update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_app.py update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_config.py update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_models.py update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_userid.py update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00