test(accessibility): Fix duplicated test (#3539)

This commit is contained in:
Darío Kondratiuk 2018-11-15 19:57:07 -03:00 committed by Andrey Lushnikov
parent 95a19c74bc
commit 03d8746260

View File

@ -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',