Skip to content

Commit f4640d1

Browse files
Revert "tests(accessibility): Remove unused browser goldens (#758)" (#763)
Not dead code, this caused these tests to fail in firefox. Reverts #758
1 parent d590ab9 commit f4640d1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/accessibility.spec.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,18 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
234234
this is the inner content
235235
<img alt="yo" src="fakeimg.png">
236236
</div>`);
237-
const golden = {
237+
const golden = FFOX ? {
238+
role: 'textbox',
239+
name: 'my favorite textbox',
240+
value: 'this is the inner content yo'
241+
} : CHROMIUM ? {
238242
role: 'textbox',
239243
name: 'my favorite textbox',
240244
value: 'this is the inner content '
245+
} : {
246+
role: 'textbox',
247+
name: 'my favorite textbox',
248+
value: 'this is the inner content ',
241249
};
242250
const snapshot = await page.accessibility.snapshot();
243251
expect(snapshot.children[0]).toEqual(golden);
@@ -262,7 +270,11 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
262270
this is the inner content
263271
<img alt="yo" src="fakeimg.png">
264272
</div>`);
265-
const golden = {
273+
const golden = FFOX ? {
274+
role: 'checkbox',
275+
name: 'this is the inner content yo',
276+
checked: true
277+
} : {
266278
role: 'checkbox',
267279
name: 'this is the inner content yo',
268280
checked: true

0 commit comments

Comments
 (0)