From d790fae74a2a62f7f463aedaf57a1ff31bb656f4 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 13 Nov 2025 13:11:53 +0100 Subject: [PATCH] Add e2e script for local development --- scripts/e2e.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/e2e.sh diff --git a/scripts/e2e.sh b/scripts/e2e.sh new file mode 100755 index 0000000..7f0d979 --- /dev/null +++ b/scripts/e2e.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")"/.. + +npx playwright install chromium + +export NEXT_PUBLIC_API_URL=localhost:8088 +export NEXT_PUBLIC_FIREBASE_ENV=DEV + +yarn --cwd=web serve & +npx wait-on http://localhost:3000 +npx playwright test tests/e2e +SERVER_PID=$(fuser -k 3000/tcp) +echo $SERVER_PID +kill $SERVER_PID +