From a18185862183c1e42580acedb7660b17d7e5d748 Mon Sep 17 00:00:00 2001 From: "Dario G. Mori" Date: Sun, 5 May 2024 10:00:40 +0200 Subject: [PATCH] test: added waiting for components to load --- webapp/e2e/steps/playing_full_game_positive.steps.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/e2e/steps/playing_full_game_positive.steps.js b/webapp/e2e/steps/playing_full_game_positive.steps.js index 85d09db9..5c1d74a4 100644 --- a/webapp/e2e/steps/playing_full_game_positive.steps.js +++ b/webapp/e2e/steps/playing_full_game_positive.steps.js @@ -57,6 +57,7 @@ defineFeature(feature, test => { }); when('Clicking the button to start a new game (Kiwi Quest gamemode)', async() => { + await new Promise(resolve => setTimeout(resolve, 6000)); await expect(page).toClick("button[data-testid='Mode-KIWI_QUEST'"); await expect(page).toClick("button[data-testid='Play']"); });