From 3313ad7b3f1b33b6c90a396661d6d8e1a1bc467c Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Fri, 26 Apr 2024 14:31:06 +0200 Subject: [PATCH] Igual es esto --- webapp/e2e/steps/logout.steps.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webapp/e2e/steps/logout.steps.js b/webapp/e2e/steps/logout.steps.js index 3459ae90..e22da8ed 100644 --- a/webapp/e2e/steps/logout.steps.js +++ b/webapp/e2e/steps/logout.steps.js @@ -14,7 +14,7 @@ defineFeature(feature, (test) => { : await puppeteer.launch({ headless: false, slowMo: 100 }); page = await browser.newPage(); - await page.setViewport({ width: 600, height: 800 }); + await page.setViewport({ width: 1600, height: 800 }); //Way of setting up the timeout setDefaultOptions({ timeout: 10000 }); @@ -43,10 +43,9 @@ defineFeature(feature, (test) => { when("I click on the Logout link", async () => { await page.waitForTimeout(1000); - - await page.click('button[aria-label="Abrir menĂº"]'); - await page.waitForSelector('[data-testid="home-logout-link"]'); - await page.click('[data-testid="home-logout-link"]'); + await page.click('#menu-button-\\:r3\\:'); + await page.waitForSelector('#menu-list-\\:r3\\:-menuitem-\\:r9\\:'); + await page.click('#menu-list-\\:r3\\:-menuitem-\\:r9\\:'); //await page.waitForNavigation({ waitUntil: "networkidle0" }); });