Skip to content

Commit

Permalink
Update a11y-checker to scan redesigned footer (#15136)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson authored Sep 16, 2024
1 parent 7b525e3 commit e642573
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/playwright/specs/a11y/components.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down Expand Up @@ -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 }) => {
Expand All @@ -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 }) => {
Expand Down Expand Up @@ -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 }) => {
Expand All @@ -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 }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/specs/a11y/includes/locators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit e642573

Please sign in to comment.