Skip to content

Add Playwright Test for Sign in with GitHub #7

Description

@Manu-2717

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions