mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-18 05:40:29 -04:00
Test/e2e login auth (#19)
* Add basic test for login and auth state * Remove test file * Change login setup * Apply suggestions from code review Co-authored-by: Martin Braquet <martin.braquet@gmail.com> * Change signin structure to use UI * Fix URL loading * Spin up backend server as well for E2E --------- Co-authored-by: Martin Braquet <martin.braquet@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e5fc734b90
commit
f7fb0c6c82
@@ -10,9 +10,13 @@ export NEXT_PUBLIC_API_URL=localhost:8088
|
||||
export NEXT_PUBLIC_FIREBASE_ENV=DEV
|
||||
|
||||
npx nyc --reporter=lcov yarn --cwd=web serve &
|
||||
npx nyc --reporter=lcov yarn --cwd=backend/api dev &
|
||||
npx wait-on http://localhost:3000
|
||||
npx playwright test tests/e2e
|
||||
SERVER_PID=$(fuser -k 3000/tcp)
|
||||
echo $SERVER_PID
|
||||
kill $SERVER_PID
|
||||
|
||||
SERVER_PID=$(fuser -k 8088/tcp)
|
||||
echo $SERVER_PID
|
||||
kill $SERVER_PID
|
||||
Reference in New Issue
Block a user