fix(settings): clarify last-saved status state
This commit is contained in:
@@ -18,12 +18,14 @@ 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)
|
||||
loan_input = page.get_by_label("Loan amount ($)")
|
||||
loan_input.fill("")
|
||||
loan_input.press("Tab")
|
||||
|
||||
expect(page.locator("text=INVALID").first).to_be_visible(timeout=15000)
|
||||
expect(page.locator("text=Loan amount must be zero or greater").first).to_be_visible(timeout=15000)
|
||||
expect(page.locator("text=Unsaved invalid changes — Last saved:").first).to_be_visible(timeout=15000)
|
||||
|
||||
page.get_by_role("button", name="Save settings").click()
|
||||
expect(page.locator("text=Validation error: Loan amount must be zero or greater").first).to_be_visible(
|
||||
@@ -38,5 +40,6 @@ def test_settings_reject_invalid_loan_amount_without_silent_zero_fallback() -> N
|
||||
|
||||
page.reload(wait_until="domcontentloaded", timeout=30000)
|
||||
expect(page.get_by_label("Loan amount ($)")).to_have_value("145000")
|
||||
expect(page.locator("text=Last saved:").first).to_be_visible(timeout=15000)
|
||||
|
||||
browser.close()
|
||||
|
||||
Reference in New Issue
Block a user