porchlight/tests
Johan Lundberg 2dfa3f3bff
test: add profile validation e2e tests and fix pre-existing failures
Add 7 new e2e tests verifying profile form validation in both manage
and admin UIs: invalid phone number, phone normalization, E.164 hint
attributes, and admin-side email/phone/picture URL validation errors.

Fix 3 pre-existing test failures:
- Replace invalid seeded phone number (+1234567890) with valid E.164
  (+12025551234) that was causing profile update tests to fail
- Update email validation error assertion to match actual pydantic
  message (value_error type uses raw message, not label-prefixed)
2026-03-16 10:00:46 +01:00
..
e2e test: add profile validation e2e tests and fix pre-existing failures 2026-03-16 10:00:46 +01:00
test_admin refactor: use shared ProfileUpdate validation in admin routes 2026-03-13 20:43:52 +01:00
test_auth_routes fix: reorder imports and use ty-compatible type suppression 2026-02-19 14:29:01 +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 fix: reorder imports and use ty-compatible type suppression 2026-02-19 14:29:01 +01:00
test_store Merge branch 'feature/admin-pages' 2026-02-19 14:36:48 +01:00
__init__.py chore: create package structure with src layout 2026-02-12 14:39:07 +01:00
conftest.py test: update all tests to include CSRF tokens 2026-02-19 14:19:47 +01:00
test_app.py feat: add landing page at / with navigation links 2026-02-19 15:38:09 +01:00
test_cli.py feat: add initial-admin CLI command 2026-02-18 11:29:13 +01:00
test_client_registration.py refactor: fix lint warnings and remove stale type: ignore comments 2026-02-18 13:08:03 +01:00
test_config.py refactor: fix lint warnings and remove stale type: ignore comments 2026-02-18 13:08:03 +01:00
test_csrf.py feat: wire CSRF middleware and harden session cookie 2026-02-19 13:45:58 +01:00
test_manage_profile.py feat: wire ProfileUpdate validation into manage profile route 2026-03-10 15:36:47 +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
test_validation.py feat: add ProfileUpdate pydantic model with email and phone validation 2026-02-20 15:21:28 +01:00