From b71d18f6978e1377ebd2b16b18d8f164d1864889 Mon Sep 17 00:00:00 2001 From: Hyu Date: Tue, 15 Sep 2026 14:58:08 +0800 Subject: [PATCH] test(bots): wait for save notices before reusing subscriptions --- web/tests/e2e/plugin-subscriptions.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/tests/e2e/plugin-subscriptions.spec.ts b/web/tests/e2e/plugin-subscriptions.spec.ts index 99281355b..11bb885dc 100644 --- a/web/tests/e2e/plugin-subscriptions.spec.ts +++ b/web/tests/e2e/plugin-subscriptions.spec.ts @@ -4,6 +4,7 @@ import { installLangBotApiMocks } from './fixtures/langbot-api'; test('creates a configured processor, persists subscriptions separately and reuses an instance', async ({ page, }) => { + test.setTimeout(60_000); await installLangBotApiMocks(page, { authenticated: true, withAdapterEvents: true, @@ -84,6 +85,11 @@ test('creates a configured processor, persists subscriptions separately and reus await page.getByRole('button', { name: /^Save$/ }).click(); const body = (await request).postDataJSON(); await expect(page.getByRole('button', { name: /^Save$/ })).toBeDisabled(); + // Move away so hovering the next control does not pause an overlapping toast. + await page.mouse.move(0, 0); + await expect( + page.locator('[data-sonner-toast][data-visible="true"]'), + ).toHaveCount(0); return body; }; const body = await save();