Skip to content

Commit

Permalink
test: reduce flakiness for accessibility tests with autofocus (#5116)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored and mathiasbynens committed Nov 27, 2019
1 parent 6cc98a7 commit f0bf645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/accessibility.spec.js
Expand Up @@ -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',
Expand Down Expand Up @@ -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: '',
Expand Down

0 comments on commit f0bf645

Please sign in to comment.