From 7cef20fd4e8c15310f5de70a08244d9ba4932803 Mon Sep 17 00:00:00 2001 From: Oscar Duignan <100650+oscarduignan@users.noreply.github.com> Date: Wed, 4 Dec 2024 22:57:25 +0000 Subject: [PATCH] fix flakey test (maybe) and try one method of introducing integrating fixes from adams path --- lib/browser-tests/puppeteer-helpers.js | 23 +- src/accessible-autocomplete.scss | 12 + .../accessibility-patches.browser.test.js | 237 ++++++++++++++++++ .../accessible-autocomplete.js | 34 ++- .../account-menu.nojs.browser.test.js | 2 +- src/components/back-link-helper/example.njk | 1 + .../timeout-dialog.browser.test.js | 89 ++++--- 7 files changed, 347 insertions(+), 51 deletions(-) create mode 100644 src/components/accessible-autocomplete/accessibility-patches.browser.test.js diff --git a/lib/browser-tests/puppeteer-helpers.js b/lib/browser-tests/puppeteer-helpers.js index f8c83db3..f845d596 100644 --- a/lib/browser-tests/puppeteer-helpers.js +++ b/lib/browser-tests/puppeteer-helpers.js @@ -41,6 +41,7 @@ export function withHmrcStylesAndScripts(body) {
+ ${preloadGovukFonts} @@ -49,6 +50,7 @@ export function withHmrcStylesAndScripts(body) { ${body} +