diff --git a/packages/app/e2e/support/helpers/sidebar-nav-settings.ts b/packages/app/e2e/support/helpers/sidebar-nav-settings.ts index e3eff916e7..2ec03a6779 100644 --- a/packages/app/e2e/support/helpers/sidebar-nav-settings.ts +++ b/packages/app/e2e/support/helpers/sidebar-nav-settings.ts @@ -149,9 +149,10 @@ async function expectVerticalOrder( await expect .poll( async () => { - const measured = await Promise.all( - keys.map(async (key) => ({ key, top: await rowTop(locate(key)) })), - ); + // One row at a time: concurrent actions that all run the developer toast handler do not + // all resume, and the poll then waits out its timeout. + const measured: { key: Key; top: number | null }[] = []; + for (const key of keys) measured.push({ key, top: await rowTop(locate(key)) }); if (!measured.every((entry): entry is { key: Key; top: number } => entry.top !== null)) return null; return measured.sort((a, b) => a.top - b.top).map((entry) => entry.key);