- 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).
|
||
|---|---|---|
| .. | ||
| e2e | ||
| test_auth_routes | ||
| test_authn | ||
| test_invite | ||
| test_manage | ||
| test_oidc | ||
| test_store | ||
| __init__.py | ||
| conftest.py | ||
| test_app.py | ||
| test_config.py | ||
| test_models.py | ||
| test_userid.py | ||