Skip to content

Commit

Permalink
test: moving registering process to beforeAll section
Browse files Browse the repository at this point in the history
  • Loading branch information
GOLASOOO committed May 4, 2024
1 parent 40d018a commit babd659
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions webapp/e2e/steps/playing_full_game_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ defineFeature(feature, test => {
})
.catch(() => {});


});

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 () => {
// Registering process
await expect(page).toClick("span[class='chakra-link css-1bicqx'");
await expect(page).toFill("input[id='user'", email);
Expand All @@ -44,6 +38,14 @@ defineFeature(feature, test => {

// Checking for the process to be correct
await new Promise(resolve => setTimeout(resolve, 6000));

});

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 new Promise(resolve => setTimeout(resolve, 6000));

// Checking user is in main screen
let header = await page.$eval("h2", (element) => {
return element.innerHTML
Expand Down

0 comments on commit babd659

Please sign in to comment.