Skip to content

Commit

Permalink
test: the previous attempt failed, im almost copy pasting the working…
Browse files Browse the repository at this point in the history
… code on the failing one as it failed on the h2 selector
  • Loading branch information
GOLASOOO committed May 4, 2024
1 parent 0a2ce19 commit 3573df0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
testMatch: ["**/register_positive*.steps.js"],
testMatch: ["**/playing_full_game_pos*.steps.js"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
testTimeout: 30000
}
10 changes: 5 additions & 5 deletions webapp/e2e/steps/playing_full_game_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ let TEST_TIMEOUT = 300 * 1000; // 5minutes


defineFeature(feature, test => {
let username = "t.playing.pos3"
let email;
let password;
let username = "t.playing.pos"
let email = username + "@gmail.com"
let password = username + ".psw"


beforeAll(async () => {
Expand Down Expand Up @@ -46,9 +46,9 @@ defineFeature(feature, test => {
await expect(page).toClick("button[data-testid='Sign up'");

// Checking for the process to be correct
await new Promise(resolve => setTimeout(resolve, 5000));
await new Promise(resolve => setTimeout(resolve, 6000));
// Checking user is in main screen
let header = await page.$eval("h2[data-testid='Welcome']", (element) => {
let header = await page.$eval("h2", (element) => {
return element.innerHTML
})
let value = header === "Bienvenid@ " + username || header === "Welcome " + username;
Expand Down

0 comments on commit 3573df0

Please sign in to comment.