feat(webkit): roll to 1269 (#2486)

This commit is contained in:
Joel Einbinder 2020-06-05 16:22:30 -07:00 committed by GitHub
parent 3ec79e17fc
commit 28e0ce1bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@
*/ */
const utils = require('./utils'); 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 iPhone = playwright.devices['iPhone 6'];
const iPhoneLandscape = playwright.devices['iPhone 6 landscape']; const iPhoneLandscape = playwright.devices['iPhone 6 landscape'];
@ -206,6 +206,22 @@ describe.skip(FFOX)('Page.emulate', function() {
expect(await page.evaluate(() => result)).toBe('Clicked'); expect(await page.evaluate(() => result)).toBe('Clicked');
await context.close(); 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() { describe('Page.emulateMedia type', function() {