From 88e310942b3668b2442f109f5adbb5657dd2a5fa Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 21 Feb 2020 13:21:45 -0800 Subject: [PATCH] test: fix test on Firefox Linux (#1079) --- test/click.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/click.spec.js b/test/click.spec.js index 0fc43e2ee2..2d81bd54d0 100644 --- a/test/click.spec.js +++ b/test/click.spec.js @@ -393,6 +393,9 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI button.style.borderWidth = '0'; button.style.width = '200px'; button.style.height = '20px'; + // Set display to "block" - otherwise Firefox layouts with non-even + // values on Linux. + button.style.display = 'block'; document.body.style.margin = '0'; }); await page.click('button');