Specifies playwright config file path
Ensures that the playwright config file path is explicitly set during test execution. This change resolves potential issues where the config file might not be correctly located, especially in environments with non-standard project structures.
This commit is contained in:
parent
cf18265057
commit
59a7dc12ef
1 changed files with 2 additions and 2 deletions
|
|
@ -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 $PLAYWRIGHT_PATH --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 --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
export TARGET_URL="$TARGET_URL"
|
export 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 }} \
|
||||||
bash -c "npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
bash -c "npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
# Start container and stream logs
|
# Start container and stream logs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue