feat: CI regression: mobile handoff break status assertion fails on main #1163

Merged
rockachopa merged 1 commits from timmy/1162-ci-regression-mobile-handoff-break-status-assert into main 2026-08-20 03:09:59 +00:00
2 changed files with 9 additions and 0 deletions

View File

@ -5409,6 +5409,7 @@
activeFlushLogin = contextIdentityFresh ? String(snapshot.context.user?.login || '').trim() : '';
if (activeFlushLogin) {
confirmedOwnerLogin = activeFlushLogin;
timerView.render();
restoreReleaseReceipt();
updateDeliveryReceiptControls();
interruptionPrompt.restore();

View File

@ -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()