diff --git a/playwright-tests/tests/snapshot/spec/table-editor.spec.ts b/playwright-tests/tests/snapshot/spec/table-editor.spec.ts index 784cc2f4360..e84d070f765 100644 --- a/playwright-tests/tests/snapshot/spec/table-editor.spec.ts +++ b/playwright-tests/tests/snapshot/spec/table-editor.spec.ts @@ -1,7 +1,7 @@ import { Page, expect, test } from '@playwright/test' const dismissToast = async (page: Page) => { - await page.locator('#toast').waitFor({ state: 'visible' }) + await page.locator('#toast').getByRole('button').waitFor({ state: 'visible' }) await page.locator('#toast').getByRole('button').click() }