Skip to content

Commit

Permalink
tests(accessibility): Remove unused browser goldens (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Jan 30, 2020
1 parent 1b012e5 commit d590ab9
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions test/accessibility.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit d590ab9

Please sign in to comment.