From 744bd160bf1eba3e941a1b1f243934c51b1db671 Mon Sep 17 00:00:00 2001 From: lauratbg Date: Fri, 26 Apr 2024 17:00:14 +0200 Subject: [PATCH] Continue trying things --- webapp/e2e/steps/addUser.steps.js | 1 - webapp/e2e/steps/login.steps.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/e2e/steps/addUser.steps.js b/webapp/e2e/steps/addUser.steps.js index e1d752f..a0ac371 100644 --- a/webapp/e2e/steps/addUser.steps.js +++ b/webapp/e2e/steps/addUser.steps.js @@ -42,7 +42,6 @@ defineFeature(feature, test => { await page.click('button[type="submit"]'); }); then('I am in /menu', async () => { - await page.waitForSelector('.divMenu'); await expect(page).toMatchElement('.divMenu'); }); }, 60000); diff --git a/webapp/e2e/steps/login.steps.js b/webapp/e2e/steps/login.steps.js index 1e05f03..ecaa3d2 100644 --- a/webapp/e2e/steps/login.steps.js +++ b/webapp/e2e/steps/login.steps.js @@ -30,9 +30,11 @@ await register(page, email, username, password); },60000); - test('Login', ({ given,when, then }) => { + test('Login', ({ given,when, then }) => { given('I am on the login page', async () => { await page.goto('http://localhost:3000/login'); + await page.waitForSelector('.general'); + }); when('I login as user', async () => {