chore: fix flaky screenshot test
This commit is contained in:
parent
ae02331d00
commit
ce83a2ccc5
|
|
@ -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 }) => {
|
test('should allow showing screenshots instead of snapshots', async ({ runAndTrace, page, server }) => {
|
||||||
const traceViewer = await runAndTrace(async () => {
|
const traceViewer = await runAndTrace(async () => {
|
||||||
await page.goto(server.PREFIX + '/one-style.html');
|
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`);
|
const screenshot = traceViewer.page.getByAltText(`Screenshot of page.goto > Action`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue