Skip to content

create test to verify that login succeeds with correct credentials #1682

Description

@pxtrickhoxng

The POST /login endpoint currently has unit tests that cover failed scenarios (returning 400 for missing fields and 401 for incorrect credentials), but doesn’t have a positive test case.

There should be a new test that verifies that the login works when provided with the correct credentials.

Because login requires an existing user, the test should first register a user, then attempt to log in with those same credentials. The response should return 200.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions