Skip to content

Commit

Permalink
test: go to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 5, 2024
1 parent 97ba946 commit 2b4d962
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webapp/e2e/steps/playing_full_game_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -52,7 +57,7 @@ defineFeature(feature, test => {
})
let value = header === "Bienvenid@ " + username || header === "Welcome " + username;
console.log(header)
//expect(value).toBeTruthy();
expect(value).toBeTruthy();

});

Expand Down

0 comments on commit 2b4d962

Please sign in to comment.