you need to define another se

Description of your first forum.
Post Reply
mitu300
Posts: 1
Joined: Tue Dec 19, 2023 3:11 am

you need to define another se

Post by mitu300 »

Success it should respond with the user details On success it should respond with a valid session token When the credentials provided are invalid When the user is not found it should respond with a status code When an invalid request body is given it should respond with a status code Before testing each scenario t o.

Tests to test ag photo editing servies ainst this endp oint All related tests are grouped. Add another copy for the route under the closing tag that defines the test suite The tests you will write in this suite will also require the user to exist in the database as you will be the login function. In the block you just . It should return a status code when valid credentials are provided. The first test will only validate a valid login request with correct credentials and.

Image

Add the following to a new test suite Copy Note It is important to note that the encryption method of the password here must be exactly the same as that used in . Now that the initial setup for this set of tests is complete you can move on to writing your tests. Just like before, the next six sections will cover each scenario individually and walk through how the test works.
Post Reply