diff --git a/webapp/e2e/steps/history.steps.js b/webapp/e2e/steps/history.steps.js index f8495c3..a4e1ab6 100644 --- a/webapp/e2e/steps/history.steps.js +++ b/webapp/e2e/steps/history.steps.js @@ -62,6 +62,7 @@ defineFeature(feature, test => { await expect(page).toFill('input[name="username"]', username); await expect(page).toFill('input[name="password"]', password); await expect(page).toClick('button[name="entrarPage"]'); + await page.waitForTimeout(1500); }); when('I press history', async () => { diff --git a/webapp/e2e/steps/jugar-form.steps.js b/webapp/e2e/steps/jugar-form.steps.js index fddcedd..db5eb16 100644 --- a/webapp/e2e/steps/jugar-form.steps.js +++ b/webapp/e2e/steps/jugar-form.steps.js @@ -43,10 +43,13 @@ defineFeature(feature, (test) => { await expect(page).toFill('input[name="username"]', username); await expect(page).toFill('input[name="password"]', password); await expect(page).toClick('button[name="entrarPage"]'); + await page.waitForTimeout(1500); }); when('the user clicks the "Play" button on the homepage', async () => { + //NO LO ENCUENTRA await expect(page).toClick('button', { text: 'JUGAR' }) + await page.waitForTimeout(1500); }); then('the questions should be displayed', async () => { diff --git a/webapp/e2e/steps/login-form.steps.js b/webapp/e2e/steps/login-form.steps.js index 92f3168..e274275 100644 --- a/webapp/e2e/steps/login-form.steps.js +++ b/webapp/e2e/steps/login-form.steps.js @@ -25,6 +25,7 @@ defineFeature(feature, test => { waitUntil: "networkidle0", }).catch(() => {}); + //Registrar al user await expect(page).toFill('input[name="username"]', username); @@ -44,10 +45,12 @@ defineFeature(feature, test => { when('Presses submit', async () => { await expect(page).toClick('button[name="entrarPage"]'); + await page.waitForTimeout(1500); }); then('The user is redirected', async () => { + //No lo encuentra await expect(page).toMatchElement("p", { text: "¿A que estás esperando?" }); }); })