mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test(accessibility): Fix duplicated test (#3539)
This commit is contained in:
parent
95a19c74bc
commit
03d8746260
@ -158,7 +158,7 @@ module.exports.addTests = function({testRunner, expect}) {
|
|||||||
});
|
});
|
||||||
it('plain text field with tabindex and without role should not have content', async function({page}) {
|
it('plain text field with tabindex and without role should not have content', async function({page}) {
|
||||||
await page.setContent(`
|
await page.setContent(`
|
||||||
<div contenteditable="plaintext-only">Edit this image:<img src="fakeimage.png" alt="my fake image"></div>`);
|
<div contenteditable="plaintext-only" tabIndex=0>Edit this image:<img src="fakeimage.png" alt="my fake image"></div>`);
|
||||||
const snapshot = await page.accessibility.snapshot();
|
const snapshot = await page.accessibility.snapshot();
|
||||||
expect(snapshot.children[0]).toEqual({
|
expect(snapshot.children[0]).toEqual({
|
||||||
role: 'GenericContainer',
|
role: 'GenericContainer',
|
||||||
|
Loading…
Reference in New Issue
Block a user