From a0b5affd335f8bcd5b26873ca31e05afd8b7892f Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Tue, 26 Aug 2025 23:11:39 +0200 Subject: [PATCH 1/2] Update urls for a11y testing --- tests/playwright/specs/a11y/includes/urls.js | 31 ++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) 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 }; From b3ae0009b3cf84cee01718e1bcfba4d2480041c5 Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Wed, 27 Aug 2025 00:11:08 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Remove=20=E2=80=B9blink=E2=80=BA=20exclusio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specs/a11y/components/navigation.spec.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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); });