fix(ff-mac-a11y): fix flaky small document tests
This commit is contained in:
parent
492304be41
commit
12f34cd08d
|
|
@ -9,7 +9,7 @@
|
|||
"main": "index.js",
|
||||
"playwright": {
|
||||
"chromium_revision": "733125",
|
||||
"firefox_revision": "1020",
|
||||
"firefox_revision": "1021",
|
||||
"webkit_revision": "1120"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue