From 59a7dc12ef6e6b5090f8f94c5046160e7814c781 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Fri, 11 Jul 2025 10:11:29 -0400 Subject: [PATCH] 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. --- temp/playwright-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index 6c86052df..3056f9c63 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -166,7 +166,7 @@ jobs: ${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \ npx concurrently -k -n 'server,playwright' \ "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 export TARGET_URL="$TARGET_URL" @@ -180,7 +180,7 @@ jobs: --ipc=host \ --env-file "${{ parameters.envFileName }}" \ ${{ 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 # Start container and stream logs