Scope testcases to a unique topic or goal #2

Closed
opened 2021-09-05 12:53:29 +02:00 by Simon · 0 comments
Owner

We should avoid packs testcases together, but on the contrary separate each element we want to test into specific testcases.

Don't

it('Should test the login');

Do


it('Prevent submiting empty credentials');

it('Prevent submiting malformed email');

it('Prevent submiting invalid password of an existing user');

it('Allow connect a user in the system with right credentials');

it('Allow to disconnect a connected user');

We should avoid packs testcases together, but on the contrary separate each element we want to test into specific testcases. ### Don't ```javascript it('Should test the login'); ``` ### Do ```javascript it('Prevent submiting empty credentials'); it('Prevent submiting malformed email'); it('Prevent submiting invalid password of an existing user'); it('Allow connect a user in the system with right credentials'); it('Allow to disconnect a connected user'); ```
Simon added this to the Improve the cypress project milestone 2021-09-05 12:53:29 +02:00
Simon added the
bug
label 2021-09-05 12:53:29 +02:00
Simon closed this issue 2022-06-30 00:37:03 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Trusk/Partie-3#2
No description provided.