Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(firefox): make scroll&click tests pass (#1760)
Yury Semikhatsky1c1d81cf3ae4
diff --git a/package.json b/package.jsonindex 074795a024..f2ee4bdc92 100644--- a/package.json+++ b/package.json@@ -9,7 +9,7 @@"main": "index.js","playwright": {"chromium_revision": "754895",- "firefox_revision": "1076",+ "firefox_revision": "1077","webkit_revision": "1193"},"scripts": {diff --git a/test/click.spec.js b/test/click.spec.jsindex 2d0f820a7b..f749004611 100644--- a/test/click.spec.js+++ b/test/click.spec.js@@ -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');