Edit auth bdd tests

This commit is contained in:
Aaron Po
2026-02-01 12:33:24 -05:00
parent 954e224c34
commit ee53cc60d8
4 changed files with 268 additions and 169 deletions

View File

@@ -1,7 +1,7 @@
Feature: User Login
As a registered user
I want to log in to my account
So that I receive an authentication token to access authenticated routes
As a registered user
I want to log in to my account
So that I receive an authentication token to access authenticated routes
Scenario: Successful login with valid credentials
Given the API is running
@@ -31,4 +31,9 @@ Feature: User Login
Scenario: Login fails when both username and password are missing
Given the API is running
When I submit a login request with both username and password missing
Then the response has HTTP status 400
Then the response has HTTP status 400
Scenario: Login endpoint only accepts POST requests
Given the API is running
When I submit a login request using a GET request
Then the response has HTTP status 404