Skip to content

Commit d790fae

Browse files
committed
Add e2e script for local development
1 parent 1a17862 commit d790fae

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

scripts/e2e.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
cd "$(dirname "$0")"/..
6+
7+
npx playwright install chromium
8+
9+
export NEXT_PUBLIC_API_URL=localhost:8088
10+
export NEXT_PUBLIC_FIREBASE_ENV=DEV
11+
12+
yarn --cwd=web serve &
13+
npx wait-on http://localhost:3000
14+
npx playwright test tests/e2e
15+
SERVER_PID=$(fuser -k 3000/tcp)
16+
echo $SERVER_PID
17+
kill $SERVER_PID
18+

0 commit comments

Comments
 (0)