From b08b8b1fa8e2bed53f21f25c1b18b46187e2e3c6 Mon Sep 17 00:00:00 2001 From: nicolethoen Date: Mon, 3 Jul 2023 14:43:22 -0400 Subject: [PATCH] chore(a11y): update logic for determining URLs to test --- patternfly-a11y.config.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/patternfly-a11y.config.js b/patternfly-a11y.config.js index 27b9461ad1..d37fa66caa 100644 --- a/patternfly-a11y.config.js +++ b/patternfly-a11y.config.js @@ -10,9 +10,22 @@ const urls = Object.keys(fullscreenRoutes) return key; } else { const path = fullscreenRoutes[key].path - if (path.match(/\/demos\/.*\/html-demos$/g)) { + if (path.match(/\/patterns\/.*\/html-demos$/g)) { return path.replace(/\/html-demos$/, ''); } else { + if ( + path.includes('/application-launcher/') | + path.includes('/options-menu/') | + path.includes('/dropdown/') | + path.includes('/select/') + ) { + return path.replace(/\/html-deprecated$/, '') + } else if ( + path.includes('/password-generator/') | + path.includes('/password-strength/') + ) { + return path.replace(/\/html-demos$/, ''); + } return path.replace(/\/html$/, '') } }