Skip to content

Commit e9904e0

Browse files
authored
Merge pull request #185 from element-hq/t3chguy-patch-1
2 parents 7db93f5 + 34d9ead commit e9904e0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/element-web-playwright-common/playwright-screenshots.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ IMAGE_NAME="element-web-playwright-common"
1111
build_image() {
1212
echo "Building $IMAGE_NAME image in $SCRIPT_DIR"
1313

14-
# Fetch the playwright version
15-
# .data.version is for yarn classic
16-
# .children.Version is for yarn berry
17-
PW_VERSION=$(yarn info --manifest --json @playwright/test | jq -r '.data.version // .children.Version')
14+
# Check the playwright version
15+
PW_VERSION=$(yarn list --pattern @playwright/test --depth=0 --json --non-interactive --no-progress | jq -r '.data.trees[].name | split("@") | last')
1816
echo "with Playwright version $PW_VERSION"
1917

2018
# Build image

0 commit comments

Comments
 (0)