fix(settings): track dirty state across all inputs

This commit is contained in:
Bu5hm4nn
2026-03-26 13:59:56 +01:00
parent cfa3cfcc08
commit 2759d9a36f
3 changed files with 20 additions and 2 deletions

View File

@@ -19,6 +19,13 @@ def test_settings_reject_invalid_loan_amount_without_silent_zero_fallback() -> N
page.goto(f"{workspace_url}/settings", wait_until="domcontentloaded", timeout=30000)
expect(page.locator("text=Settings").first).to_be_visible(timeout=15000)
expect(page.locator("text=Last saved:").first).to_be_visible(timeout=15000)
page.get_by_label("Refresh interval (seconds)").fill("7")
expect(page.locator("text=Unsaved changes — Last saved:").first).to_be_visible(timeout=15000)
page.reload(wait_until="domcontentloaded", timeout=30000)
expect(page.get_by_label("Refresh interval (seconds)")).to_have_value("5")
expect(page.locator("text=Last saved:").first).to_be_visible(timeout=15000)
loan_input = page.get_by_label("Loan amount ($)")
loan_input.fill("")
loan_input.press("Tab")