Skip to content

Commit f64999e

Browse files
fix: restore confirm-password autocomplete regression test
PR #195 accidentally deleted the def line for test_register_page_confirm_password_has_autocomplete, collapsing its body into test_register_page_shows_password_requirements and demoting its docstring to a no-op string statement. This restored the issue #156 autocomplete check as its own test. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0acd381 commit f64999e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/routers/core/test_account.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ def test_register_page_shows_password_requirements(unauth_client: TestClient):
450450
assert 'name="comm_opt_in"' in html
451451
assert 'name="comm_updates"' in html
452452
assert 'name="comm_marketing"' in html
453+
454+
455+
def test_register_page_confirm_password_has_autocomplete(unauth_client: TestClient):
453456
"""Issue #156: Both password fields must have autocomplete='new-password' for Chrome autofill."""
454457
response = unauth_client.get(app.url_path_for("read_register"))
455458
assert response.status_code == 200

0 commit comments

Comments
 (0)