fix: restore break status after account confirmation
This commit is contained in:
parent
cf94624aa9
commit
bdf1ddaada
|
|
@ -5409,6 +5409,7 @@
|
||||||
activeFlushLogin = contextIdentityFresh ? String(snapshot.context.user?.login || '').trim() : '';
|
activeFlushLogin = contextIdentityFresh ? String(snapshot.context.user?.login || '').trim() : '';
|
||||||
if (activeFlushLogin) {
|
if (activeFlushLogin) {
|
||||||
confirmedOwnerLogin = activeFlushLogin;
|
confirmedOwnerLogin = activeFlushLogin;
|
||||||
|
timerView.render();
|
||||||
restoreReleaseReceipt();
|
restoreReleaseReceipt();
|
||||||
updateDeliveryReceiptControls();
|
updateDeliveryReceiptControls();
|
||||||
interruptionPrompt.restore();
|
interruptionPrompt.restore();
|
||||||
|
|
|
||||||
|
|
@ -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():
|
def test_timed_break_is_packaged_as_an_accessible_mobile_flow():
|
||||||
html = (ROOT / "frontend" / "index.html").read_text()
|
html = (ROOT / "frontend" / "index.html").read_text()
|
||||||
css = (ROOT / "frontend" / "dashboard.css").read_text()
|
css = (ROOT / "frontend" / "dashboard.css").read_text()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user