diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3cd286f3e..6aff6fab1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,7 +52,7 @@ jobs: # matching browser build. `scripts/visual.sh` derives the image from it for # local runs, and `src/main/ciDependencyCompatibility.test.ts` asserts the # two stay in sync so the version cannot drift unnoticed. - container: mcr.microsoft.com/playwright:v1.64.1-noble@sha256:47b510dd9230bf0b9bfc9b20102241e577ea7a99334ab4c3ca19f19770e9b8ea + container: mcr.microsoft.com/playwright:v1.64.1-noble@sha256:2f05f8a734509a7b3f26a912639488ee08f58a7b292d14d62271bcff9038768f steps: - name: Checkout diff --git a/scripts/visual.sh b/scripts/visual.sh index 716d7b44c..931776715 100755 --- a/scripts/visual.sh +++ b/scripts/visual.sh @@ -29,8 +29,9 @@ FILTER="${1:-}" # Already inside the pinned image (set by the CI job and by the docker run # below), so run the suite rather than nesting another container. if [ -n "${GITIFY_VISUAL_IN_CONTAINER:-}" ]; then + # Node.js 26, which the image now ships, no longer bundles corepack. # shellcheck disable=SC2086 -- word splitting is intended for the optional flags - exec corepack pnpm exec vp test --project 'browser [visual]' --run ${UPDATE} ${FILTER:+-t "${FILTER}"} + exec ./node_modules/.bin/vp test --project 'browser [visual]' --run ${UPDATE} ${FILTER:+-t "${FILTER}"} fi REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"