fix: restore timed break after unchanged fresh context (Closes #1262)
This commit is contained in:
1 parent
76f89df609
commit
e06bd8435d
2 files changed
+26
-10
No files matched your search
@@ -267,6 +267,20 @@ restoring.then(result => {{
|
||||
assert "timerView.restore(todaySync.flush());" in dashboard
|
||||
|
||||
|
||||
def test_fresh_unchanged_context_restores_the_confirmed_break_owner():
|
||||
dashboard = (ROOT / "frontend" / "dashboard.js").read_text()
|
||||
snapshot_handler = dashboard.split("async function renderLiveSnapshot", 1)[1]
|
||||
identity_restore, changed_render = snapshot_handler.split(
|
||||
"if (snapshot.context && workChanged)", 1
|
||||
)
|
||||
assert "activeFlushLogin = contextIdentityFresh ?" in identity_restore
|
||||
assert "confirmedOwnerLogin = activeFlushLogin;" in identity_restore
|
||||
assert "timerView.restore(todaySync.flush());" in identity_restore
|
||||
assert "activeFlushLogin = contextIdentityFresh ?" not in changed_render.split(
|
||||
"if (eventsChanged", 1
|
||||
)[0]
|
||||
|
||||
|
||||
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()
|
||||
|
||||
Reference in new issue
Block a user