chore(site): update @playwright/test to version 1.47.2 (#14912)

Playwright version detection in `scripts/remote_playwright.sh` was also fixed.
This commit is contained in:
Mathias Fredriksson
2024-10-01 13:59:49 +00:00
committed by GitHub
parent 11f7b1b3f5
commit ca80dd657b
3 changed files with 30 additions and 20 deletions
+8 -1
View File
@@ -17,7 +17,14 @@ main() {
# between the server and client, and the protocol changes between versions.
echo "Checking Playwright version from \"${workspace}\"..."
# shellcheck disable=SC2029 # This is intended to expand client-side.
playwright_version="$(ssh "coder.${workspace}" "cat '${coder_repo}'/site/pnpm-lock.yaml | grep '^ /@playwright/test@' | cut -d '@' -f 3 | tr -d ':'")"
playwright_version=$(
ssh "coder.${workspace}" \
"cat '${coder_repo}'/site/pnpm-lock.yaml | grep \"^ '@playwright/test@\"" |
cut -d '@' -f 3 |
tr -d ":'" |
sort -V |
tail -n 1
)
echo "Found Playwright version ${playwright_version}..."