Skip to content

Commit

Permalink
fix: simplified test
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 5, 2024
1 parent 6e29997 commit 95346c2
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ defineFeature(feature, test => {
})
.catch(() => {});

// Registering the user before the tests
await registerUserFromRootDirectory(username, page);

// Logging it out
await logOutUser(page);

}, 120000);

test("A registered user wants to log in using his credentials but with an invalid email", ({given,when,and,then}) => {
Expand Down Expand Up @@ -60,7 +54,7 @@ defineFeature(feature, test => {
});

and('User fills the form with his proper password but writes a wrong formatted email', async() => {
await expect(page).toFill("#user", username + "a");
await expect(page).toFill("#user", username );
await expect(page).toFill("#password", password);
});

Expand Down

0 comments on commit 95346c2

Please sign in to comment.