Skip to content

Commit

Permalink
test(webkit): uncomment fixed viewport screenshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Mar 11, 2020
1 parent 5d4fdd0 commit c253f21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added test/golden-webkit/screenshot-element-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/golden-webkit/screenshot-mobile-fullpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions test/screenshot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ module.exports.describe = function({testRunner, expect, product, FFOX, CHROMIUM,
expect(screenshot).toBeGolden('screenshot-mobile-clip.png');
await context.close();
});
it.skip(FFOX).fail(WEBKIT)('should work with a mobile viewport and fullPage', async({browser, server}) => {
it.skip(FFOX)('should work with a mobile viewport and fullPage', async({browser, server}) => {
const context = await browser.newContext({viewport: { width: 320, height: 480, isMobile: true }});
const page = await context.newPage();
await page.goto(server.PREFIX + '/overflow-large.html');
Expand Down Expand Up @@ -376,7 +376,7 @@ module.exports.describe = function({testRunner, expect, product, FFOX, CHROMIUM,
const screenshot = await elementHandle.screenshot();
expect(screenshot).toBeGolden('screenshot-element-fractional.png');
});
it.skip(FFOX).fail(WEBKIT)('should work with a mobile viewport', async({browser, server}) => {
it.skip(FFOX)('should work with a mobile viewport', async({browser, server}) => {
const context = await browser.newContext({viewport: { width: 320, height: 480, isMobile: true }});
const page = await context.newPage();
await page.goto(server.PREFIX + '/grid.html');
Expand Down

0 comments on commit c253f21

Please sign in to comment.