Skip to content

Commit

Permalink
fix: removing flaky part of e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAllenTech committed Oct 3, 2024
1 parent 6649e50 commit 3066351
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions e2e/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ test.describe("Login Page", () => {
name: "Login with GitHub",
});
expect(loginButton).toBeTruthy();
await page.goto("http://localhost:3000/api/auth/signout");
await page.getByRole("button", { name: "Sign out" }).click();
await expect(page.locator("#submitButton")).toBeHidden();
});

test("should navigate to GitHub login page when clicking the login button", async ({
Expand All @@ -29,8 +26,5 @@ test.describe("Login Page", () => {

expect(page.getByLabel("Username or email address")).toBeTruthy();
expect(page.getByLabel("Password")).toBeTruthy();
await page.goto("http://localhost:3000/api/auth/signout");
await page.getByRole("button", { name: "Sign out" }).click();
await expect(page.locator("#submitButton")).toBeHidden();
});
});

0 comments on commit 3066351

Please sign in to comment.