fix(ff-mac-a11y): fix flaky small document tests

This commit is contained in:
Pavel Feldman 2020-01-29 08:19:09 -08:00
parent 492304be41
commit 12f34cd08d
2 changed files with 9 additions and 1 deletions

View file

@ -9,7 +9,7 @@
"main": "index.js",
"playwright": {
"chromium_revision": "733125",
"firefox_revision": "1020",
"firefox_revision": "1021",
"webkit_revision": "1120"
},
"scripts": {

View file

@ -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(`<div>Hello World</div>`);
const snapshot = await page.accessibility.snapshot();