Stabilize the release gate for the Tomorrow wrap-up handoff #1176
|
|
@ -71,8 +71,12 @@ def test_release_artifact_guides_an_empty_mobile_account_to_first_work(
|
||||||
"""() => {
|
"""() => {
|
||||||
document.querySelector('[data-mobile-today-hud]').hidden = false;
|
document.querySelector('[data-mobile-today-hud]').hidden = false;
|
||||||
localStorage.setItem('stackchain.first-task.v1:timmy', 'coaching');
|
localStorage.setItem('stackchain.first-task.v1:timmy', 'coaching');
|
||||||
|
const productionCoach = document.querySelector('[data-mobile-first-task-coach]');
|
||||||
|
const isolatedCoach = productionCoach.cloneNode(true);
|
||||||
|
productionCoach.replaceWith(isolatedCoach);
|
||||||
window.firstTaskOutcomeProbe = createMobileFirstTask({
|
window.firstTaskOutcomeProbe = createMobileFirstTask({
|
||||||
getLogin: () => 'timmy', hasWork: () => true, isTodayActive: () => true,
|
getLogin: () => 'timmy', hasWork: () => true, isTodayActive: () => true,
|
||||||
|
coach: isolatedCoach,
|
||||||
});
|
});
|
||||||
return window.firstTaskOutcomeProbe.refresh();
|
return window.firstTaskOutcomeProbe.refresh();
|
||||||
}"""
|
}"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user