mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
7 lines
270 B
TypeScript
7 lines
270 B
TypeScript
export async function expectToFind(selector: string) {
|
|
await expect(await page.waitForSelector(selector)).not.toBeNull()
|
|
}
|
|
|
|
export async function expectToNotFind(selector: string) {
|
|
await expect(page.waitForSelector(selector, { timeout: 1000 })).rejects.toThrow()
|
|
}
|