Skip to content

Commit

Permalink
fix(test): disable more screenshot tests on headful firefox (#3513)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder authored Aug 18, 2020
1 parent 5a964f7 commit b2228a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/page-screenshot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ it.skip(ffheadful)('should work with iframe in shadow', async({page, server, gol
expect(await page.screenshot()).toMatchImage(golden('screenshot-iframe.png'));
});

it('path option should work', async({page, server, golden, tmpDir}) => {
it.skip(ffheadful)('path option should work', async({page, server, golden, tmpDir}) => {
await page.setViewportSize({width: 500, height: 500});
await page.goto(server.PREFIX + '/grid.html');
const outputPath = path.join(tmpDir, 'screenshot.png');
await page.screenshot({path: outputPath});
expect(await fs.promises.readFile(outputPath)).toMatchImage(golden('screenshot-sanity.png'));
});

it('path option should create subdirectories', async({page, server, golden, tmpDir}) => {
it.skip(ffheadful)('path option should create subdirectories', async({page, server, golden, tmpDir}) => {
await page.setViewportSize({width: 500, height: 500});
await page.goto(server.PREFIX + '/grid.html');
const outputPath = path.join(tmpDir, 'these', 'are', 'directories', 'screenshot.png');
Expand Down

0 comments on commit b2228a6

Please sign in to comment.