test: reduce flakiness for accessibility tests with autofocus (#5116)
This commit is contained in:
parent
6cc98a7b63
commit
f0bf645c47
@ -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: '',
|
||||
|
Loading…
Reference in New Issue
Block a user