From 53eb73fe27a929ed438aad5014694aff29db9116 Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Fri, 26 Apr 2024 15:42:52 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20wait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/e2e/steps/logout.steps.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webapp/e2e/steps/logout.steps.js b/webapp/e2e/steps/logout.steps.js index 4867df57..3ca186f5 100644 --- a/webapp/e2e/steps/logout.steps.js +++ b/webapp/e2e/steps/logout.steps.js @@ -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\\:");