Skip to content

Commit

Permalink
Añadido wait
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 26, 2024
1 parent c1695a0 commit 53eb73f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webapp/e2e/steps/logout.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@ defineFeature(feature, (test) => {
await page.waitForSelector("#login-password");
await page.type("#login-password", password);
await page.click("button", { text: "Login" });
await page.waitForNavigation({ waitUntil: "networkidle0" });
});

when("I click on the Logout link", async () => {
const bodyHTML = await page.evaluate(() => document.body.innerHTML);
console.log(bodyHTML);

await page.waitForTimeout(10000);
await page.waitForSelector("#menu-button-\\:r3\\:");
await page.click("#menu-button-\\:r3\\:");
await page.waitForSelector("#menu-list-\\:r3\\:-menuitem-\\:r9\\:");
await page.click("#menu-list-\\:r3\\:-menuitem-\\:r9\\:");
Expand Down

0 comments on commit 53eb73f

Please sign in to comment.