mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
feat(webkit): roll to 1269 (#2486)
This commit is contained in:
parent
3ec79e17fc
commit
28e0ce1bb1
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user