Skip to content

GSOC-E2E-4: Add login-logout test - #4241

Merged
clairep94 merged 4 commits into
processing:developfrom
Geethegreat:login-test
Aug 8, 2026
Merged

GSOC-E2E-4: Add login-logout test#4241
clairep94 merged 4 commits into
processing:developfrom
Geethegreat:login-test

Conversation

@Geethegreat

Copy link
Copy Markdown
Member

Issue:

Fixes #

Adds a test for the authenticated login flow

Demo:

e2e-flow-4-lgout.mp4

Changes:

  • Navigate to /login
  • Fill email and password fields with credentials from a test user created in beforeAll
  • Submit and verify the editor loads
  • Verify the username appears in the nav and "Log in" link is gone
  • Open the user dropdown and click "Log Out"
  • Verify the "Log in" link reappears

This covers the full login → use editor → logout cycle as a real user would experience it.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

Pulls createTestUser (and loginAs, for reuse by other specs) out of
login.spec.ts and into a shared helper so other specs don't
duplicate the signup-via-API + login boilerplate.
@clairep94
clairep94 merged commit eb2ee4e into processing:develop Aug 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants