fix: run seed.ts before E2E tests to create test users and sessions

Without seeding, loginAsUser/loginAsAdmin cookies are invalid and
all tests redirect to /login.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
master
oabrivard 3 months ago
parent 1dad319e5e
commit 7558dcf049

@ -50,11 +50,14 @@ for i in $(seq 1 60); do
sleep 2
done
echo "=== Installing Playwright dependencies ==="
echo "=== Installing dependencies ==="
cd "$E2E_DIR"
npm install --silent
npx playwright install chromium --with-deps 2>/dev/null || npx playwright install chromium
echo "=== Seeding test database ==="
npx tsx seed.ts
echo "=== Running E2E tests ==="
npx playwright test "$@"

Loading…
Cancel
Save