test: reduce flakiness for accessibility tests with autofocus (#5116)

This commit is contained in:
Darío Kondratiuk 2019-11-27 06:36:17 -03:00 committed by Mathias Bynens
parent 6cc98a7b63
commit f0bf645c47

View File

@ -42,6 +42,7 @@ module.exports.addTests = function({testRunner, expect, FFOX}) {
</select>
</body>`);
await page.focus('[placeholder="Empty input"]');
const golden = FFOX ? {
role: 'document',
name: 'Accessibility Test',
@ -81,6 +82,7 @@ module.exports.addTests = function({testRunner, expect, FFOX}) {
});
it('should report uninteresting nodes', async function({page}) {
await page.setContent(`<textarea autofocus>hi</textarea>`);
await page.focus('textarea');
const golden = FFOX ? {
role: 'entry',
name: '',