mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-04 09:05:49 -05:00
5 lines
204 B
TypeScript
5 lines
204 B
TypeScript
import { expect, type Page } from '@playwright/test';
|
|
|
|
export const alertToBeVisible = async (page: Page, text: string) =>
|
|
await expect(page.getByRole('alert').filter({ hasText: text })).toBeVisible();
|