From fa8a4933f218f3dc7ff806186d5f784457800864 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Thu, 30 Jan 2020 12:51:07 -0800 Subject: [PATCH] Revert "tests(accessibility): Remove unused browser goldens (#758)" This reverts commit d590ab93fa6d45a9612d1cb800e7ea60fc4d80e8. --- test/accessibility.spec.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/test/accessibility.spec.js b/test/accessibility.spec.js index e5bb8bd9dfcfe..64ab278d4a818 100644 --- a/test/accessibility.spec.js +++ b/test/accessibility.spec.js @@ -234,10 +234,18 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT, this is the inner content yo `); - const golden = { + const golden = FFOX ? { + role: 'textbox', + name: 'my favorite textbox', + value: 'this is the inner content yo' + } : CHROMIUM ? { 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); @@ -262,7 +270,11 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT, this is the inner content yo `); - const golden = { + const golden = FFOX ? { + role: 'checkbox', + name: 'this is the inner content yo', + checked: true + } : { role: 'checkbox', name: 'this is the inner content yo', checked: true