Skip to content

Commit

Permalink
feat(webkit): roll to 1269 (#2486)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder authored Jun 5, 2020
1 parent 3ec79e1 commit 28e0ce1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion test/emulation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

const utils = require('./utils');
const {FFOX, CHROMIUM, WEBKIT} = utils.testOptions(browserType);
const {FFOX, CHROMIUM, WEBKIT, LINUX} = utils.testOptions(browserType);
const iPhone = playwright.devices['iPhone 6'];
const iPhoneLandscape = playwright.devices['iPhone 6 landscape'];

Expand Down Expand Up @@ -206,6 +206,22 @@ describe.skip(FFOX)('Page.emulate', function() {
expect(await page.evaluate(() => result)).toBe('Clicked');
await context.close();
});
it('should scroll to click', async({browser, server}) => {
const context = await browser.newContext({
viewport: {
width: 400,
height: 400,
},
deviceScaleFactor: 1,
isMobile: true
});
const page = await context.newPage();
await page.goto(server.PREFIX + '/input/scrollable.html');
const element = await page.$('#button-91');
await element.click();
expect(await element.textContent()).toBe('clicked');
await context.close();
});
});

describe('Page.emulateMedia type', function() {
Expand Down

0 comments on commit 28e0ce1

Please sign in to comment.