Skip to content

Commit

Permalink
test: added timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 5, 2024
1 parent ae813c4 commit b407a3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/e2e/steps/login_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defineFeature(feature, test => {
.catch(() => {});

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

// Logging it out
await logOutUser(page);
Expand Down Expand Up @@ -113,6 +113,7 @@ async function registerUserFromRootDirectory(username, page) {
async function logOutUser(page) {
// Logging out
await expect(page).toClick("#lateralMenuButton");
await new Promise(resolve => setTimeout(resolve, 5000)); // Waiting for page to fully load
await expect(page).toClick("button[data-testid='LogOut']");

// Checking for the log out to be sucessful
Expand Down

0 comments on commit b407a3c

Please sign in to comment.