From e222d4760731c62570f112d85d8cfe67a31b324d Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:37:52 +0200 Subject: [PATCH 1/5] Update firefox-welcome-4.spec.js --- .../specs/products/firefox/welcome/firefox-welcome-4.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/specs/products/firefox/welcome/firefox-welcome-4.spec.js b/tests/playwright/specs/products/firefox/welcome/firefox-welcome-4.spec.js index e0a7bb9b92b..c2b57e4437f 100644 --- a/tests/playwright/specs/products/firefox/welcome/firefox-welcome-4.spec.js +++ b/tests/playwright/specs/products/firefox/welcome/firefox-welcome-4.spec.js @@ -13,7 +13,7 @@ const url = '/firefox/welcome/4/'; test.describe( `${url} page`, { - tag: ['@firefox', '@wfc-redirect'] + tag: '@firefox' }, () => { test('Send to device form success', async ({ page, browserName }) => { From b89ec8bc2e0a68a6aaeb8dbba71913e018ba44b6 Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:38:54 +0200 Subject: [PATCH 2/5] Update firefox-welcome-6.spec.js --- .../specs/products/firefox/welcome/firefox-welcome-6.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/specs/products/firefox/welcome/firefox-welcome-6.spec.js b/tests/playwright/specs/products/firefox/welcome/firefox-welcome-6.spec.js index 6aa586c35d4..3773efe05ee 100644 --- a/tests/playwright/specs/products/firefox/welcome/firefox-welcome-6.spec.js +++ b/tests/playwright/specs/products/firefox/welcome/firefox-welcome-6.spec.js @@ -13,7 +13,7 @@ const url = '/firefox/welcome/6/'; test.describe( `${url} page`, { - tag: ['@firefox', '@wfc-redirect'] + tag: '@firefox' }, () => { test('Send set as default button displayed', async ({ From 0fb82fe209054805b6b862cb992e7fcb8abbbc90 Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:42:35 +0200 Subject: [PATCH 3/5] Reinstate firefox-nightly-firstrun.spec.js --- .../firefox/firefox-nightly-firstrun.spec.js | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/playwright/specs/products/firefox/firefox-nightly-firstrun.spec.js diff --git a/tests/playwright/specs/products/firefox/firefox-nightly-firstrun.spec.js b/tests/playwright/specs/products/firefox/firefox-nightly-firstrun.spec.js new file mode 100644 index 00000000000..e091562399a --- /dev/null +++ b/tests/playwright/specs/products/firefox/firefox-nightly-firstrun.spec.js @@ -0,0 +1,38 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +'use strict'; + +const { test, expect } = require('@playwright/test'); +const openPage = require('../../../scripts/open-page'); +const url = '/en-US/firefox/nightly/firstrun/'; + +test.describe( + `${url} page`, + { + tag: '@firefox' + }, + () => { + test.beforeEach(async ({ page, browserName }) => { + await openPage(url, page, browserName); + }); + + test('Calls to action are displayed', async ({ page, browserName }) => { + test.skip( + browserName !== 'firefox', + 'Page shown to Firefox browsers only' + ); + + const testingButton = page.getByTestId('start-testing'); + const codingButton = page.getByTestId('start-coding'); + const localizingButton = page.getByTestId('start-localizing'); + + await expect(testingButton).toBeVisible(); + await expect(codingButton).toBeVisible(); + await expect(localizingButton).toBeVisible(); + }); + } +); From d9383c98fc5b217c419ad2815f244ff755be4ffd Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Wed, 20 Aug 2025 18:35:08 +0200 Subject: [PATCH 4/5] Refresh some urls for axe a11y scanning --- tests/playwright/specs/a11y/includes/urls.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/playwright/specs/a11y/includes/urls.js b/tests/playwright/specs/a11y/includes/urls.js index 5c39e1240bf..3c7d1dc568e 100644 --- a/tests/playwright/specs/a11y/includes/urls.js +++ b/tests/playwright/specs/a11y/includes/urls.js @@ -8,7 +8,7 @@ /** * 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/', @@ -26,16 +26,26 @@ const desktopTestURLs = [ '/en-US/contact/', '/en-US/contribute/', '/en-US/firefox/download/thanks/', - '/en-US/firefox/releasenotes/', + '/en-US/foundation/annualreport/2024/', '/en-US/privacy/', '/en-US/privacy/websites/cookie-settings/', '/en-US/products/', '/en-US/products/vpn/', '/en-US/products/vpn/download/', '/en-US/products/vpn/features/', - '/en-US/products/vpn/pricing/' + '/en-US/products/vpn/pricing/', + '/en-US/security/advisories/', + '/en-US/security/known-vulnerabilities/firefox/' ]; -const mobileTestURLs = ['/en-US/']; +const mobileTestURLs = [ + '/en-US/', + '/en-US/firefox/download/thanks/', + '/en-US/privacy/', + '/en-US/privacy/firefox/', + '/en-US/products/', + '/en-US/products/vpn/', + '/en-US/products/vpn/download/' +]; module.exports = { desktopTestURLs, mobileTestURLs }; From 6f715a7c5c56f89d949ba80e95a0a990f255cbcc Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Wed, 20 Aug 2025 23:24:00 +0200 Subject: [PATCH 5/5] Add more in-product pages to axe a11y list --- tests/playwright/specs/a11y/includes/urls.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/playwright/specs/a11y/includes/urls.js b/tests/playwright/specs/a11y/includes/urls.js index 3c7d1dc568e..4638c843391 100644 --- a/tests/playwright/specs/a11y/includes/urls.js +++ b/tests/playwright/specs/a11y/includes/urls.js @@ -26,6 +26,11 @@ const desktopTestURLs = [ '/en-US/contact/', '/en-US/contribute/', '/en-US/firefox/download/thanks/', + '/en-US/firefox/99.0/whatsnew/', + '/en-US/firefox/99.0a1/whatsnew/', + '/en-US/firefox/99.0a2/whatsnew/', + '/en-US/firefox/99.0a2/firstrun/', + '/en-US/firefox/nightly/firstrun/', '/en-US/foundation/annualreport/2024/', '/en-US/privacy/', '/en-US/privacy/websites/cookie-settings/',