diff --git a/frontend/dashboard.js b/frontend/dashboard.js index ef2db89..90c5712 100644 --- a/frontend/dashboard.js +++ b/frontend/dashboard.js @@ -5409,6 +5409,7 @@ activeFlushLogin = contextIdentityFresh ? String(snapshot.context.user?.login || '').trim() : ''; if (activeFlushLogin) { confirmedOwnerLogin = activeFlushLogin; + timerView.render(); restoreReleaseReceipt(); updateDeliveryReceiptControls(); interruptionPrompt.restore(); diff --git a/tests/test_today_break.py b/tests/test_today_break.py index d08a88c..df0e49c 100644 --- a/tests/test_today_break.py +++ b/tests/test_today_break.py @@ -185,6 +185,14 @@ process.stdout.write(JSON.stringify({{opened,cancelled,started,expired,final:{{c } +def test_confirming_the_account_renders_a_persisted_break_immediately(): + dashboard = (ROOT / "frontend" / "dashboard.js").read_text() + confirmation = dashboard.split("if (activeFlushLogin) {", 1)[1].split("}", 1)[0] + + assert "confirmedOwnerLogin = activeFlushLogin;" in confirmation + assert "timerView.render();" in confirmation + + def test_timed_break_is_packaged_as_an_accessible_mobile_flow(): html = (ROOT / "frontend" / "index.html").read_text() css = (ROOT / "frontend" / "dashboard.css").read_text()