mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
10 lines
339 B
TypeScript
10 lines
339 B
TypeScript
import { type Page, expect } from '@playwright/test';
|
|
|
|
export const expectTextToBeVisible = async (page: Page, text: string) => {
|
|
await expect(page.getByText(text).first()).toBeVisible();
|
|
};
|
|
|
|
export const expectTextToNotBeVisible = async (page: Page, text: string) => {
|
|
await expect(page.getByText(text).first()).not.toBeVisible();
|
|
};
|