diff --git a/apps/web/tests/queue-actions.e2e.ts b/apps/web/tests/queue-actions.e2e.ts index 3bed7ab24a..2f45d38d37 100644 --- a/apps/web/tests/queue-actions.e2e.ts +++ b/apps/web/tests/queue-actions.e2e.ts @@ -133,6 +133,7 @@ describe('web e2e: queue row actions', () => { const queueHeader = page.getByRole('button', { name: '2 queued messages' }) await expect.poll(() => queueHeader.getAttribute('aria-expanded'), { timeout: 10_000 }) .toBe('false') + await expect.poll(() => queueHeader.getByRole('status').count(), { timeout: 10_000 }).toBe(0) const collapsedSnapshot = await captureStableAria( page, '[class*="centerCol"]', @@ -288,6 +289,7 @@ describe('web e2e: queue row actions', () => { const queueHeader = page.getByRole('button', { name: '2 queued messages' }) await expect.poll(() => queueHeader.getAttribute('aria-expanded'), { timeout: 10_000 }) .toBe('false') + await expect.poll(() => queueHeader.getByRole('status').count(), { timeout: 10_000 }).toBe(0) const layoutSnapshot = await captureStableAria( page,