Ensures the Playwright test command receives the path
to the test files, which is necessary for proper execution
within the Docker environment.
This commit is contained in:
maguire-arman 2025-07-09 17:16:03 -04:00
parent d9afd1142d
commit 9faa3a77fb

View file

@ -166,7 +166,7 @@ jobs:
${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \ ${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \
npx concurrently -k -n 'server,playwright' \ npx concurrently -k -n 'server,playwright' \
"npm --prefix $SERVE_PATH run serve -- --port=$port" \ "npm --prefix $SERVE_PATH run serve -- --port=$port" \
"npx --prefix $PLAYWRIGHT_PATH wait-on $TARGET_URL && npx --prefix $PLAYWRIGHT_PATH playwright test --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \ "npx --prefix $PLAYWRIGHT_PATH wait-on $TARGET_URL && npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
) )
else else
TARGET_URL="$TARGET_URL" TARGET_URL="$TARGET_URL"
@ -180,7 +180,7 @@ jobs:
--ipc=host \ --ipc=host \
--env-file "${{ parameters.envFileName }}" \ --env-file "${{ parameters.envFileName }}" \
${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \ ${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \
npx --prefix $PLAYWRIGHT_PATH playwright test --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER \ npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER \
) )
fi fi
# Start container and stream logs # Start container and stream logs