From 2041c5df1e9d5d1f9f37e7c177f2e70f61ea5dba Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Thu, 18 May 2023 05:07:45 +1000 Subject: [PATCH] Add media type context to start of result link titles (#1920) Co-authored-by: Olga Bulat Co-authored-by: Zack Krida --- frontend/docker-compose.playwright.yml | 1 + frontend/package.json | 4 ++- .../components/VAudioTrack/VAudioTrack.vue | 2 +- .../components/VContentLink/VContentLink.vue | 2 +- .../VSearchResultsGrid/VImageCell.vue | 13 ++++++-- frontend/src/locales/scripts/en.json5 | 8 +++-- .../e2e/all-results-keyboard.spec.ts | 17 +++++----- frontend/test/playwright/playwright.config.ts | 31 +++++++++---------- 8 files changed, 45 insertions(+), 33 deletions(-) diff --git a/frontend/docker-compose.playwright.yml b/frontend/docker-compose.playwright.yml index 01e1f3cf33b..0ed5435abad 100644 --- a/frontend/docker-compose.playwright.yml +++ b/frontend/docker-compose.playwright.yml @@ -18,4 +18,5 @@ services: - DEBUG=pw:webserver - DISABLE_SENTRY=true - UPDATE_TAPES=${UPDATE_TAPES:-false} + - FASTSTART=${FASTSTART:-false} cpus: 0.000 diff --git a/frontend/package.json b/frontend/package.json index e2c031b9e9f..a59e595f2f2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,6 +16,7 @@ "docker:run": "docker run --rm -it -p 127.0.0.1:8443:8443/tcp openverse-frontend:latest", "generate": "nuxt generate", "start": "nuxt start", + "start:playwright": "pnpm i18n:copy-test-locales && pnpm start", "prod": "pnpm build:only && pnpm start", "prod:playwright": "pnpm i18n:copy-test-locales && pnpm prod", "storybook": "nuxt storybook --port=54000", @@ -29,11 +30,12 @@ "test:unit": "jest", "test:unit:watch": "pnpm test:unit --collectCoverage=false --watch", "test:playwright": "./bin/playwright.sh", - "test:playwright:local": "DISABLE_SENTRY=true playwright test -c test/playwright", + "test:playwright:local": "DISABLE_SENTRY=true pnpm exec playwright test -c test/playwright", "test:playwright:debug": "PWDEBUG=1 pnpm test:playwright:local", "test:playwright:recreate-tapes": "rimraf test/tapes && pnpm test:playwright:update-tapes", "test:playwright:update-tapes": "UPDATE_TAPES=true pnpm test:playwright", "test:playwright:gen": "playwright codegen localhost:8443/", + "test:playwright:faststart": "FASTSTART=true pnpm test:playwright", "test:storybook": "TEST_COMMAND=test:storybook:local ./bin/playwright.sh", "test:storybook:local": "playwright test -c test/storybook", "test:storybook:debug": "PWDEBUG=1 pnpm test:storybook:local", diff --git a/frontend/src/components/VAudioTrack/VAudioTrack.vue b/frontend/src/components/VAudioTrack/VAudioTrack.vue index 290bca51d9d..a56fec87690 100644 --- a/frontend/src/components/VAudioTrack/VAudioTrack.vue +++ b/frontend/src/components/VAudioTrack/VAudioTrack.vue @@ -470,7 +470,7 @@ export default defineComponent({ ) const ariaLabel = computed(() => isComposite.value - ? i18n.t("audio-track.aria-label-interactive", { + ? i18n.t("audio-track.aria-label-interactive-seekable", { title: props.audio.title, }) : i18n.t("audio-track.aria-label", { title: props.audio.title }) diff --git a/frontend/src/components/VContentLink/VContentLink.vue b/frontend/src/components/VContentLink/VContentLink.vue index 600bc337eaf..e800d60c3de 100644 --- a/frontend/src/components/VContentLink/VContentLink.vue +++ b/frontend/src/components/VContentLink/VContentLink.vue @@ -1,5 +1,5 @@