We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7db93f5 + 34d9ead commit e9904e0Copy full SHA for e9904e0
1 file changed
packages/element-web-playwright-common/playwright-screenshots.sh
@@ -11,10 +11,8 @@ IMAGE_NAME="element-web-playwright-common"
11
build_image() {
12
echo "Building $IMAGE_NAME image in $SCRIPT_DIR"
13
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')
+ # 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')
18
echo "with Playwright version $PW_VERSION"
19
20
# Build image
0 commit comments