From 1d92cfe0f04a176c86e5f776d7be0f050b509c7c Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sat, 26 Sep 2026 11:02:21 +0400 Subject: [PATCH] test: fix schedule e2e race --- e2e/tests/motion.test.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/tests/motion.test.mjs b/e2e/tests/motion.test.mjs index 24b7cb22..c2edbf9d 100644 --- a/e2e/tests/motion.test.mjs +++ b/e2e/tests/motion.test.mjs @@ -1571,7 +1571,6 @@ test("schedule displays every timezone and slot, and skipped run details work by await resize(app, 1200, 800); const profile = await createProfile(app, "Two daily slots"); const other = await createProfile(app, "Separate timezone"); - await installSynchronizerFixture(app); const schedule = (item, timezone, slots) => ({ profile_id: item.id, profile_name: item.name, @@ -1613,6 +1612,10 @@ test("schedule displays every timezone and slot, and skipped run details work by `, [schedules, profile.id], ); + // After the schedule stubs, not before: the fixture signs in a paid user, + // and the app fetches the schedules the moment it sees one. On a slow + // start that fetch reached the backend before the stubs were in place. + await installSynchronizerFixture(app); await app.pressShortcut({ ...modifier, key: "b" }); await app.clickText(en.cookieBot.tabs.schedule, { roles: ["tab"] }); await waitForSelector(app, slot("schedule-lane"));