From ae52d6111927cccada5fdf930ffa53764955cd37 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 17 Oct 2023 13:27:36 +0100 Subject: [PATCH] Remove Checkboxes rule `aria-allowed-attr` Axe v4.8 now allows checkbox input `aria-expanded` from ARIA 1.2 https://github.com/dequelabs/axe-core/pull/3343#issuecomment-1766315397 --- .../checkboxes/accessibility.puppeteer.test.mjs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/govuk/components/checkboxes/accessibility.puppeteer.test.mjs b/src/govuk/components/checkboxes/accessibility.puppeteer.test.mjs index 62034d8e76..d3df70b638 100644 --- a/src/govuk/components/checkboxes/accessibility.puppeteer.test.mjs +++ b/src/govuk/components/checkboxes/accessibility.puppeteer.test.mjs @@ -2,19 +2,6 @@ import { axe, goToComponent } from '@govuk-frontend/helpers/puppeteer' import { getExamples } from '@govuk-frontend/lib/components' describe('/components/checkboxes', () => { - let axeRules - - beforeAll(() => { - axeRules = { - /** - * Ignore 'ARIA attribute is not allowed: aria-expanded="false"' - * - * {@link https://github.com/alphagov/govuk-frontend/issues/979} - */ - 'aria-allowed-attr': { enabled: false } - } - }) - describe('component examples', () => { let exampleNames @@ -26,7 +13,7 @@ describe('/components/checkboxes', () => { for (const exampleName of exampleNames) { // Navigation to example, create report await goToComponent(page, 'checkboxes', { exampleName }) - await expect(axe(page, axeRules)).resolves.toHaveNoViolations() + await expect(axe(page)).resolves.toHaveNoViolations() } }, 120000) })