diff --git a/tests/playwright/specs/a11y/components/navigation.spec.js b/tests/playwright/specs/a11y/components/navigation.spec.js index b5ad4c05c..a893ed122 100644 --- a/tests/playwright/specs/a11y/components/navigation.spec.js +++ b/tests/playwright/specs/a11y/components/navigation.spec.js @@ -11,7 +11,6 @@ const { createReport, scanPageElement } = require('../includes/helpers'); const { navigationLocator } = require('../includes/locators'); const { test, expect } = require('@playwright/test'); const testURL = '/en-US/'; -const disabledRules = ['blink']; test.describe( 'Navigation (desktop)', @@ -36,11 +35,7 @@ test.describe( await resourcesLink.hover(); await expect(resourcesMenu).toBeVisible(); - const results = await scanPageElement( - page, - navigationLocator, - disabledRules - ); + const results = await scanPageElement(page, navigationLocator); createReport('component', 'navigation-desktop', results); expect(results.violations.length).toEqual(0); }); @@ -78,11 +73,7 @@ test.describe( // Resource menu should be open by default await expect(resourcesMenu).toBeVisible(); - const results = await scanPageElement( - page, - navigationLocator, - disabledRules - ); + const results = await scanPageElement(page, navigationLocator); createReport('component', 'navigation-mobile', results); expect(results.violations.length).toEqual(0); }); diff --git a/tests/playwright/specs/a11y/includes/urls.js b/tests/playwright/specs/a11y/includes/urls.js index 9f5fad22d..952ff60d6 100644 --- a/tests/playwright/specs/a11y/includes/urls.js +++ b/tests/playwright/specs/a11y/includes/urls.js @@ -8,20 +8,41 @@ /** * URL paths for inclusion in page-level a11y scans. - * Pages will be scanned at both desktop and mobile resolutions. + * Different set of pages will be scanned at desktop and mobile resolutions. */ const desktopTestURLs = [ '/en-US/', + '/en-US/browsers/desktop/', + '/en-US/browsers/desktop/linux/', + '/en-US/browsers/enterprise/', + '/en-US/browsers/mobile/', + '/en-US/browsers/mobile/android/', + '/en-US/browsers/mobile/ios/', + '/en-US/browsers/mobile/focus/', + '/en-US/browsers/mobile/get-app/', '/en-US/channel/android/', '/en-US/channel/desktop/', '/en-US/channel/desktop/developer/', '/en-US/download/all/', - '/en-US/thanks/', - '/en-US/browsers/enterprise/', + '/en-US/compare/', + '/en-US/compare/opera/', + '/en-US/features/', + '/en-US/features/sync/', '/en-US/firefox/releasenotes/', - '/en-US/privacy/websites/cookie-settings/' + '/en-US/privacy/websites/cookie-settings/', + '/en-US/thanks/' ]; -const mobileTestURLs = ['/en-US/', '/en-US/channel/android/']; +const mobileTestURLs = [ + '/en-US/', + '/en-US/browsers/mobile/', + '/en-US/browsers/mobile/android/', + '/en-US/browsers/mobile/ios/', + '/en-US/browsers/mobile/focus/', + '/en-US/channel/android/', + '/en-US/download/all/', + '/en-US/firefox/android/notes/', + '/en-US/thanks/' +]; module.exports = { desktopTestURLs, mobileTestURLs };