chore: fix flaky screenshot test

This commit is contained in:
Simon Knott 2024-09-09 13:17:35 +02:00
parent ae02331d00
commit ce83a2ccc5
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -1469,6 +1469,7 @@ test('should serve css without content-type', async ({ page, runAndTrace, server
test('should allow showing screenshots instead of snapshots', async ({ runAndTrace, page, server }) => {
const traceViewer = await runAndTrace(async () => {
await page.goto(server.PREFIX + '/one-style.html');
await page.waitForTimeout(1000); // ensure we could take a screenshot
});
const screenshot = traceViewer.page.getByAltText(`Screenshot of page.goto > Action`);