(page: Page, text: string)
| 1 | import { expect, type Page } from '@playwright/test'; |
| 2 | |
| 3 | export const alertToBeVisible = async (page: Page, text: string) => |
| 4 | await expect(page.getByRole('alert').filter({ hasText: text })).toBeVisible(); |
no outgoing calls