Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iyanfdezz committed Apr 23, 2024
1 parent 2e15b16 commit 4064662
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webapp/e2e/steps/logout.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ defineFeature(feature, (test) => {
password = "Testpassword1";
await page.waitForSelector("#login-username");
await page.type("#login-username", username);
await page.waitForSelector("#register-password");
await page.type("#register-password", password);
await page.waitForSelector("#login-password");
await page.type("#login-password", password);
await page.click("button", { text: "Login" });
await page.waitForNavigation({ waitUntil: "networkidle0" });
});
Expand Down
6 changes: 4 additions & 2 deletions webapp/e2e/steps/play-calculator.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ defineFeature(feature, (test) => {
test("The user can answer a question on Human Calculator mode", ({ given, when, then }) => {
given("A logged-in user", async () => {

await page.type("#login-username", "testuser");
await page.type("#login-password", "Testpassword1");
await page.waitForSelector("#login-username");
await page.type("#login-username", username);
await page.waitForSelector("#login-password");
await page.type("#login-password", password);
await page.click("button", { text: "Login" });
await page.waitForNavigation();
});
Expand Down
6 changes: 4 additions & 2 deletions webapp/e2e/steps/play-classic.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ defineFeature(feature, (test) => {
test("The user can answer a question on Classic mode", ({ given, when, then }) => {
given("A logged-in user", async () => {

await page.type("#login-username", "testuser");
await page.type("#login-password", "Testpassword1");
await page.waitForSelector("#login-username");
await page.type("#login-username", username);
await page.waitForSelector("#login-password");
await page.type("#login-password", password);
await page.click("button", { text: "Login" });
await page.waitForNavigation();
});
Expand Down

0 comments on commit 4064662

Please sign in to comment.