porchlight/tests/e2e
Johan Lundberg bcfe3a2a15
fix: keep password form visible on validation error
The password setup/change form used hx-target="#password-section" with
hx-swap="innerHTML", but that div wraps the form itself. On a validation
error the route returns only an alert div, so the swap replaced the entire
form — the password inputs disappeared. Most visible during registration's
"set password" step.

Retarget the form to a dedicated #password-error div outside the form
(mirrors the working login form's #login-error pattern), so the form and
its inputs survive errors while messages still render inside #password-section.

Also fix pre-existing broken e2e tests: they omitted the required
current_password fill and used passwords below the zxcvbn strength
threshold (score 1 < MIN_PASSWORD_STRENGTH=2).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 16:22:01 +02:00
..
.gitignore test: add end-to-end browser tests with Playwright 2026-02-16 12:22:58 +01:00
admin.spec.js test: add profile validation e2e tests and fix pre-existing failures 2026-03-16 10:00:46 +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 fix: keep password form visible on validation error 2026-06-03 16:22:01 +02:00
full-flow.spec.js fix: keep password form visible on validation error 2026-06-03 16:22:01 +02: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
logout.spec.js test: add e2e tests for logout buttons in admin and manage nav bars 2026-03-10 10:50:44 +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
profile.spec.js test: add profile validation e2e tests and fix pre-existing failures 2026-03-16 10:00:46 +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 fix: resolve all ruff lint errors and type checker warnings 2026-03-31 15:48:46 +02:00
webauthn.spec.js fix(e2e): fix WebAuthn and integration test failures 2026-02-18 12:45:03 +01:00