diff --git a/.github/workflows/prediction-market-gates.yml b/.github/workflows/prediction-market-gates.yml index cbcb272a..c694d9c9 100644 --- a/.github/workflows/prediction-market-gates.yml +++ b/.github/workflows/prediction-market-gates.yml @@ -258,7 +258,8 @@ jobs: run: bun run dev:bootstrap - name: Install Playwright browser - run: bunx playwright install --with-deps chromium + working-directory: packages/hyperbet-${{ matrix.chain }}/app + run: ./node_modules/.bin/playwright install --with-deps chromium - name: AVAX gate posture note if: matrix.chain == 'avax' diff --git a/packages/hyperbet-solana/app/scripts/run-e2e-local.sh b/packages/hyperbet-solana/app/scripts/run-e2e-local.sh index ca6e70c1..ec37b910 100755 --- a/packages/hyperbet-solana/app/scripts/run-e2e-local.sh +++ b/packages/hyperbet-solana/app/scripts/run-e2e-local.sh @@ -518,7 +518,10 @@ sleep 2 write_control_file echo "[e2e] running playwright tests" -E2E_BASE_URL="http://127.0.0.1:$APP_PORT" \ -E2E_GAME_API_URL="$GAME_API_URL" \ -E2E_ARENA_WRITE_KEY="$E2E_ARENA_WRITE_KEY" \ - bunx playwright test --config "$APP_DIR/tests/e2e/playwright.config.ts" "$@" +( + cd "$APP_DIR" + E2E_BASE_URL="http://127.0.0.1:$APP_PORT" \ + E2E_GAME_API_URL="$GAME_API_URL" \ + E2E_ARENA_WRITE_KEY="$E2E_ARENA_WRITE_KEY" \ + ./node_modules/.bin/playwright test --config "$APP_DIR/tests/e2e/playwright.config.ts" "$@" +)