Skip to content

Commit

Permalink
fix: missing timeouts for ensuring web pages are fully loaded.
Browse files Browse the repository at this point in the history
Co-authored-by: Dario G.Mori <[email protected]>
  • Loading branch information
GOLASOOO committed May 1, 2024
1 parent 174543d commit a32169d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ defineFeature(feature, test => {
let gameURL = "http://localhost:3000/dashboard/game";

given('A non-logged user in main menu', async () => {
await new Promise(resolve => setTimeout(resolve, 6000));
let header = await page.$eval("button[data-testid='Login']", (element) => {
return element.innerHTML
})
Expand Down
1 change: 1 addition & 0 deletions webapp/e2e/steps/seeing_rules_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ defineFeature(feature, test => {
await expect(page).toClick("button[data-testid='Login'");

// Checking user is in main screen
await new Promise(resolve => setTimeout(resolve, 6000));
let header = await page.$eval("h2[class='chakra-heading css-79qjat']", (element) => {
return element.innerHTML
})
Expand Down

0 comments on commit a32169d

Please sign in to comment.