diff --git a/apps/app/e2e/support/browser.ts b/apps/app/e2e/support/browser.ts index ce1c2210..674c4182 100644 --- a/apps/app/e2e/support/browser.ts +++ b/apps/app/e2e/support/browser.ts @@ -95,29 +95,49 @@ export { expect } /** * Serious violations found before V1-1.3, outside its code, listed in TODO RR-7 - * until their own fix: the scan lets these exact nodes through and fails on any - * other (WCAG 2.5.3 label in name, 1.3.1 info and relationships). + * until their own fix: the scan lets through only the node that matches the + * rule, the selector, the opening markup and the route of each entry, and fails + * on any other, so a new screen or a new element never inherits an exception + * (WCAG 2.5.3 label in name, 1.3.1 info and relationships). */ -const KNOWN_VIOLATIONS: { id: string; target: RegExp; note: string }[] = [ +const KNOWN_VIOLATIONS: { + id: string + target: RegExp + html: RegExp + path: RegExp + note: string +}[] = [ { id: 'label-content-name-mismatch', target: /^button\[aria-label="(Passer en français|Switch to English)"\]$/, - note: 'LanguageSwitcher: shows « FR » / « EN », named « Passer en français » / « Switch to English »', + html: /^