From ed6cdf34e116196193fd55ebe54985fe558f28ee Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Wed, 24 Apr 2024 14:41:02 +0200 Subject: [PATCH] test: screen-reader --- .github/actions/playwright-cache/action.yml | 4 ++-- screen-reader-test/playwright.screen-reader.mac.ts | 8 ++++++++ screen-reader-test/playwright.screen-reader.win.ts | 4 ++++ .../DBButton-should-not-have-icon-in-screen-reader.txt | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/actions/playwright-cache/action.yml b/.github/actions/playwright-cache/action.yml index afd5815..153444c 100644 --- a/.github/actions/playwright-cache/action.yml +++ b/.github/actions/playwright-cache/action.yml @@ -11,11 +11,11 @@ runs: run: | if [[ $OS == "Windows" ]]; then echo "CACHE_PATH=C:\Users\runneradmin\AppData\Local\ms-playwright" >> "$GITHUB_ENV" - echo "BROWSER=chromium" >> "$GITHUB_ENV" + echo "BROWSER=chromium firefox" >> "$GITHUB_ENV" echo "OS=windows" >> "$GITHUB_ENV" else echo "CACHE_PATH=~/Library/Caches/ms-playwright" >> "$GITHUB_ENV" - echo "BROWSER=webkit" >> "$GITHUB_ENV" + echo "BROWSER=webkit chromium firefox" >> "$GITHUB_ENV" echo "OS=macos" >> "$GITHUB_ENV" fi diff --git a/screen-reader-test/playwright.screen-reader.mac.ts b/screen-reader-test/playwright.screen-reader.mac.ts index bb30105..198d617 100644 --- a/screen-reader-test/playwright.screen-reader.mac.ts +++ b/screen-reader-test/playwright.screen-reader.mac.ts @@ -9,6 +9,14 @@ const config: PlaywrightTestConfig = { name: "webkit", use: { ...devices["Desktop Safari"], headless: false }, }, + { + name: "chromium", + use: { ...devices["Desktop Chrome"], headless: false }, + }, + { + name: "firefox", + use: { ...devices["Desktop Firefox"], headless: false }, + }, ], }; diff --git a/screen-reader-test/playwright.screen-reader.win.ts b/screen-reader-test/playwright.screen-reader.win.ts index b0eed33..2c1d17b 100644 --- a/screen-reader-test/playwright.screen-reader.win.ts +++ b/screen-reader-test/playwright.screen-reader.win.ts @@ -10,6 +10,10 @@ const config: PlaywrightTestConfig = { name: "chromium", use: { ...devices["Desktop Chrome"], headless: false }, }, + { + name: "firefox", + use: { ...devices["Desktop Firefox"], headless: false }, + } ], }; diff --git a/screen-reader-test/screen-reader/__snapshots__/macos/webkit/DBButton-should-not-have-icon-in-screen-reader.txt b/screen-reader-test/screen-reader/__snapshots__/macos/webkit/DBButton-should-not-have-icon-in-screen-reader.txt index 438f0e0..2f9862e 100644 --- a/screen-reader-test/screen-reader/__snapshots__/macos/webkit/DBButton-should-not-have-icon-in-screen-reader.txt +++ b/screen-reader-test/screen-reader/__snapshots__/macos/webkit/DBButton-should-not-have-icon-in-screen-reader.txt @@ -1 +1 @@ -["(Default) Text button","Icon & Text button","Icon button",fail] \ No newline at end of file +["(Default) Text button","Icon & Text button","Icon button"] \ No newline at end of file