Skip to content

Add test verifying login succeeds with correct credentials#1686

Merged
evanugarte merged 3 commits into
SCE-Development:devfrom
pxtrickhoxng:test/login-with-valid-credentials
Jun 17, 2025
Merged

Add test verifying login succeeds with correct credentials#1686
evanugarte merged 3 commits into
SCE-Development:devfrom
pxtrickhoxng:test/login-with-valid-credentials

Conversation

@pxtrickhoxng

Copy link
Copy Markdown
Contributor

This PR adds a test that first registers a user, sets their email as verified, and then attempts to log in using the same credentials. It verifies that the login succeeds and that the returned token contains the correct structure and user information.

Addresses issue #1682.

@weslayer

Copy link
Copy Markdown
Collaborator

Make it so that the user is deleted from the DB after the test runs.

@flotoria

Copy link
Copy Markdown
Collaborator

looks like the lint check failed, run npx eslint . --fix and commit again

@evanugarte
evanugarte merged commit cfd147d into SCE-Development:dev Jun 17, 2025
4 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.

4 participants