tests(accessibility): Remove unused browser goldens (#758)

This commit is contained in:
Darío Kondratiuk 2020-01-30 17:07:08 -03:00 committed by GitHub
parent 1b012e50e9
commit d590ab93fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,18 +234,10 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
this is the inner content
<img alt="yo" src="fakeimg.png">
</div>`);
const golden = FFOX ? {
role: 'textbox',
name: 'my favorite textbox',
value: 'this is the inner content yo'
} : CHROMIUM ? {
const golden = {
role: 'textbox',
name: 'my favorite textbox',
value: 'this is the inner content '
} : {
role: 'textbox',
name: 'my favorite textbox',
value: 'this is the inner content ',
};
const snapshot = await page.accessibility.snapshot();
expect(snapshot.children[0]).toEqual(golden);
@ -270,11 +262,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
this is the inner content
<img alt="yo" src="fakeimg.png">
</div>`);
const golden = FFOX ? {
role: 'checkbox',
name: 'this is the inner content yo',
checked: true
} : {
const golden = {
role: 'checkbox',
name: 'this is the inner content yo',
checked: true