From 12f34cd08de467da8cb1b4d28c5bf01b0bc10940 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Wed, 29 Jan 2020 08:19:09 -0800 Subject: [PATCH] fix(ff-mac-a11y): fix flaky small document tests --- package.json | 2 +- test/accessibility.spec.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 14691102af..b6b39b9d6c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "main": "index.js", "playwright": { "chromium_revision": "733125", - "firefox_revision": "1020", + "firefox_revision": "1021", "webkit_revision": "1120" }, "scripts": { diff --git a/test/accessibility.spec.js b/test/accessibility.spec.js index 64ab278d4a..d350836e3e 100644 --- a/test/accessibility.spec.js +++ b/test/accessibility.spec.js @@ -82,6 +82,14 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT, }; expect(await page.accessibility.snapshot()).toEqual(golden); }); + it('should work with blank document', async({page}) => { + await page.setContent(``); + const snapshot = await page.accessibility.snapshot(); + expect(snapshot).toEqual({ + role: FFOX ? 'document' : 'WebArea', + name: '', + }); + }); it.skip(WEBKIT && !MAC)('should work with regular text', async({page}) => { await page.setContent(`
Hello World
`); const snapshot = await page.accessibility.snapshot();