fix(settings): track dirty state across all inputs
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user