From 33fbb47d93718df860ced507754d992b70b4610e Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 23 Jan 2026 16:39:23 +0000 Subject: [PATCH] Fix Playwright version checking Updated method to fetch Playwright version using yarn list. `yarn info` was just querying what the latest available package is --- .../element-web-playwright-common/playwright-screenshots.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/element-web-playwright-common/playwright-screenshots.sh b/packages/element-web-playwright-common/playwright-screenshots.sh index 409c5baa8a..686807387c 100755 --- a/packages/element-web-playwright-common/playwright-screenshots.sh +++ b/packages/element-web-playwright-common/playwright-screenshots.sh @@ -11,10 +11,8 @@ IMAGE_NAME="element-web-playwright-common" build_image() { echo "Building $IMAGE_NAME image in $SCRIPT_DIR" - # Fetch the playwright version - # .data.version is for yarn classic - # .children.Version is for yarn berry - PW_VERSION=$(yarn info --manifest --json @playwright/test | jq -r '.data.version // .children.Version') + # Check the playwright version + PW_VERSION=$(yarn list --pattern @playwright/test --depth=0 --json --non-interactive --no-progress | jq -r '.data.trees[].name | split("@") | last') echo "with Playwright version $PW_VERSION" # Build image