mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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}..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user