fix(firefox): make scroll&click tests pass (#1760)

This commit is contained in:
Yury Semikhatsky 2020-04-13 18:30:00 -07:00 committed by GitHub
parent f36973f683
commit 1c1d81cf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
"main": "index.js",
"playwright": {
"chromium_revision": "754895",
"firefox_revision": "1076",
"firefox_revision": "1077",
"webkit_revision": "1193"
},
"scripts": {

View File

@ -290,7 +290,7 @@ describe('Page.click', function() {
// @see https://github.com/GoogleChrome/puppeteer/issues/4110
// @see https://bugs.chromium.org/p/chromium/issues/detail?id=986390
// @see https://chromium-review.googlesource.com/c/chromium/src/+/1742784
it.fail(true)('should click the button with fixed position inside an iframe', async({page, server}) => {
it.fail(CHROMIUM || WEBKIT)('should click the button with fixed position inside an iframe', async({page, server}) => {
await page.goto(server.EMPTY_PAGE);
await page.setViewportSize({width: 500, height: 500});
await page.setContent('<div style="width:100px;height:2000px">spacer</div>');
@ -331,7 +331,7 @@ describe('Page.click', function() {
expect(await page.evaluate(() => offsetX)).toBe(WEBKIT ? 12 * 2 + 20 : 20);
expect(await page.evaluate(() => offsetY)).toBe(WEBKIT ? 12 * 2 + 10 : 10);
});
it.fail(FFOX)('should click a very large button with offset', async({page, server}) => {
it('should click a very large button with offset', async({page, server}) => {
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => button.style.borderWidth = '8px');
await page.$eval('button', button => button.style.height = button.style.width = '2000px');
@ -341,7 +341,7 @@ describe('Page.click', function() {
expect(await page.evaluate(() => offsetX)).toBe(WEBKIT ? 1900 + 8 : 1900);
expect(await page.evaluate(() => offsetY)).toBe(WEBKIT ? 1910 + 8 : 1910);
});
it.fail(FFOX)('should click a button in scrolling container with offset', async({page, server}) => {
it('should click a button in scrolling container with offset', async({page, server}) => {
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => {
const container = document.createElement('div');