From df1d8a7dc6fcb153902d9407238b7ea06b85c196 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Thu, 8 Aug 2024 06:55:19 +0200 Subject: [PATCH] refactor: we need to harmonize specific words --- .../macos/webkit/DBPopover-should-open-the-popover.txt | 2 +- showcases/screen-reader/default.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/showcases/screen-reader/__snapshots__/macos/webkit/DBPopover-should-open-the-popover.txt b/showcases/screen-reader/__snapshots__/macos/webkit/DBPopover-should-open-the-popover.txt index 3d43b2da96a..3cb6b516465 100644 --- a/showcases/screen-reader/__snapshots__/macos/webkit/DBPopover-should-open-the-popover.txt +++ b/showcases/screen-reader/__snapshots__/macos/webkit/DBPopover-should-open-the-popover.txt @@ -1 +1 @@ -["article","list 2 items","• Popover Custom Item 1 1 of 2","• Popover Custom Item 2 2 of 2","end of list","Popover Custom Item 3 button","end of article","(Default) Regular menu pop-up button"] \ No newline at end of file +["article","list 2 items","• Popover Custom Item 1 1 of 2","• Popover Custom Item 2 2 of 2","end of list","Popover Custom Item 3 button","end of article","(Default) Regular menu pop up button"] \ No newline at end of file diff --git a/showcases/screen-reader/default.ts b/showcases/screen-reader/default.ts index cc282e1daff..ef91dc18097 100644 --- a/showcases/screen-reader/default.ts +++ b/showcases/screen-reader/default.ts @@ -47,6 +47,8 @@ const cleanSpeakInstructions = (phraseLog: string[]): string[] => ) ) .join('. ') + // We need to replace specific phrases, as they are being reported differently on localhost and within CI/CD + .replaceAll('pop-up', 'pop up') ); export const generateSnapshot = async (