From f0bf645c479beefe4190c4b2ac78c813e4e81e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Wed, 27 Nov 2019 06:36:17 -0300 Subject: [PATCH] test: reduce flakiness for accessibility tests with autofocus (#5116) --- test/accessibility.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/accessibility.spec.js b/test/accessibility.spec.js index a284d493caf73..b60fc691fa266 100644 --- a/test/accessibility.spec.js +++ b/test/accessibility.spec.js @@ -42,6 +42,7 @@ module.exports.addTests = function({testRunner, expect, FFOX}) { `); + await page.focus('[placeholder="Empty input"]'); const golden = FFOX ? { role: 'document', name: 'Accessibility Test', @@ -81,6 +82,7 @@ module.exports.addTests = function({testRunner, expect, FFOX}) { }); it('should report uninteresting nodes', async function({page}) { await page.setContent(``); + await page.focus('textarea'); const golden = FFOX ? { role: 'entry', name: '',