Minor fix.

This commit is contained in:
Ivan Vasilov committed 2024-05-29 14:41:05 +02:00
1 parent 36e4e66a94
commit 34a68b3b0a
1 file changed
+1 -1
@@ -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()
}