(page, file, locator)
| 49 | } |
| 50 | |
| 51 | async function capture(page, file, locator) { |
| 52 | await page.bringToFront(); |
| 53 | if (locator) await locator.scrollIntoViewIfNeeded(); |
| 54 | const path = join(OUT, file); |
| 55 | await page.screenshot({ path, fullPage: false }); |
| 56 | report.screenshots.push({ file, url: page.url(), at: new Date().toISOString(), |
| 57 | sha256: createHash('sha256').update(await readFile(path)).digest('hex') }); |
| 58 | } |
| 59 | |
| 60 | async function loadedAlerts(page, project, expanded = false) { |
| 61 | const alerts = page.getByTestId('daemon-alerts'); |
no test coverage detected