( page: Page, app: PlaywrightFixture, selector: string, match: string, )
| 247 | |
| 248 | // Shorthand util to wait for an element to appear before asserting it |
| 249 | async function waitForAndAssert( |
| 250 | page: Page, |
| 251 | app: PlaywrightFixture, |
| 252 | selector: string, |
| 253 | match: string, |
| 254 | ) { |
| 255 | await page.waitForSelector(selector); |
| 256 | expect(await app.getHtml(selector)).toMatch(match); |
| 257 | } |
no test coverage detected
searching dependent graphs…