Skip to content

Commit 843da7b

Browse files
committed
Remove -- args from playwright command
The -- separator was causing Playwright to interpret arguments as file paths. Environment variables E2E_ENV and SETUP_METHOD are already set in GITHUB_ENV and read by the config.
1 parent 74e175c commit 843da7b

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,12 @@ jobs:
118118
TAG_GREP: ${{ github.event.inputs.tags }}
119119
run: |
120120
set -euo pipefail
121-
GREP_OPT=""
121+
CMD="npx playwright test"
122122
if [ -n "${TAG_GREP:-}" ]; then
123-
GREP_OPT="--grep \"${TAG_GREP}\""
123+
CMD="$CMD --grep \"${TAG_GREP}\""
124124
fi
125-
SETUP_OPT=""
126-
if [ -n "${SETUP_METHOD:-}" ]; then
127-
SETUP_OPT="--setupMethod \"${SETUP_METHOD}\""
128-
fi
129-
CMD="npx playwright test ${GREP_OPT} -- --env ${E2E_ENV:-edge} ${SETUP_OPT}"
130125
echo "Running: $CMD"
126+
echo "E2E_ENV=${E2E_ENV:-edge}, SETUP_METHOD=${SETUP_METHOD:-}"
131127
eval "$CMD"
132128
133129
- name: Upload Playwright report

0 commit comments

Comments
 (0)