Update a11y-checker to scan redesigned footer (#15136)

This commit is contained in:
Alex Gibson 2024-09-16 01:48:51 +01:00 коммит произвёл GitHub
Родитель 7b525e3551
Коммит e6425738e4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -15,8 +15,8 @@ const {
} = require('./includes/locators');
const { test, expect } = require('@playwright/test');
const testURL = '/en-US/firefox/new/';
const footerTestURL = '/de/firefox/new/';
const testURL = '/en-US/';
const subNavURL = '/en-US/firefox/new/';
test.describe(
'Navigation (desktop)',
@ -90,7 +90,7 @@ test.describe(
},
() => {
test.beforeEach(async ({ page, browserName }) => {
await openPage(testURL, page, browserName);
await openPage(subNavURL, page, browserName);
});
test('should not have any detectable a11y issues', async ({ page }) => {
@ -110,7 +110,7 @@ test.describe(
test.use({ viewport: { width: 360, height: 780 } });
test.beforeEach(async ({ page, browserName }) => {
await openPage(testURL, page, browserName);
await openPage(subNavURL, page, browserName);
});
test('should not have any detectable a11y issues', async ({ page }) => {
@ -138,7 +138,7 @@ test.describe(
},
() => {
test.beforeEach(async ({ page, browserName }) => {
await openPage(footerTestURL, page, browserName);
await openPage(testURL, page, browserName);
});
test('should not have any detectable a11y issues', async ({ page }) => {
@ -158,7 +158,7 @@ test.describe(
test.use({ viewport: { width: 360, height: 780 } });
test.beforeEach(async ({ page, browserName }) => {
await openPage(footerTestURL, page, browserName);
await openPage(testURL, page, browserName);
});
test('should not have any detectable a11y issues', async ({ page }) => {

Просмотреть файл

@ -10,7 +10,7 @@
* CSS selectors of common elements for
* inclusion / exclusion in a11y scans.
*/
const footerLocator = '.mzp-c-footer';
const footerLocator = '#colophon';
const navigationLocator = '.c-navigation';
const subNavigationLocator = '.c-sub-navigation';