Skip to content

Commit

Permalink
Igual es esto
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 26, 2024
1 parent a4a2f86 commit 3313ad7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions webapp/e2e/steps/logout.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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" });
});

Expand Down

0 comments on commit 3313ad7

Please sign in to comment.