From 2b4d962ab5e4dd8e29a90d96cc5140257306a765 Mon Sep 17 00:00:00 2001 From: "Dario G. Mori" Date: Sun, 5 May 2024 10:23:12 +0200 Subject: [PATCH] test: go to dashboard --- webapp/e2e/steps/playing_full_game_positive.steps.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/e2e/steps/playing_full_game_positive.steps.js b/webapp/e2e/steps/playing_full_game_positive.steps.js index 3fe1d7ce..06801678 100644 --- a/webapp/e2e/steps/playing_full_game_positive.steps.js +++ b/webapp/e2e/steps/playing_full_game_positive.steps.js @@ -44,6 +44,11 @@ defineFeature(feature, test => { test("A logged user wants to play an entire game (Kiwi Quest gamemode)", ({given,when,and,then}) => { given('A logged user in the main menu', async () => { + await page + .goto("http://localhost:3000/dashboard", { + waitUntil: "networkidle0", + }) + .catch(() => {}); await new Promise(resolve => setTimeout(resolve, 6000)); // Checking user is in main screen @@ -52,7 +57,7 @@ defineFeature(feature, test => { }) let value = header === "Bienvenid@ " + username || header === "Welcome " + username; console.log(header) - //expect(value).toBeTruthy(); + expect(value).toBeTruthy(); });