Prerequisite:
Have Hackathon Starter up and running with a local account.
Have set valid GitHub API keys.
Have linked their local account to their GitHub account in Hackathon Starter's account page.
Able to run npm run test:e2e-nokey with all existing tests passing.
Scope:
Create test/e2e/login-authenticated.e2e.test.js that uses a session captured thru node test/helpers/playwright-auth-setup.js and Playwright to test "Sign in with GitHub" in /login .
- npm run test:e2e runs all existing and the new tests and they should all pass.
npx playwright test --config=test/playwright.config.js test/e2e/login-authenticated.e2e.test.js should run the new tests with all passing.
Note: that these tests can't use mongodb-memory-server and need to use a persistence Mongo DB instance.
Prerequisite:
Have Hackathon Starter up and running with a local account.
Have set valid GitHub API keys.
Have linked their local account to their GitHub account in Hackathon Starter's account page.
Able to run npm run test:e2e-nokey with all existing tests passing.
Scope:
Create
test/e2e/login-authenticated.e2e.test.jsthat uses a session captured thru nodetest/helpers/playwright-auth-setup.jsand Playwright to test "Sign in with GitHub" in /login .npx playwright test --config=test/playwright.config.js test/e2e/login-authenticated.e2e.test.jsshould run the new tests with all passing.Note: that these tests can't use mongodb-memory-server and need to use a persistence Mongo DB instance.