Skip to content

Commit

Permalink
chore: improve e2e stability
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jun 18, 2024
1 parent 82f78d0 commit c0da9a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/auth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,14 @@ test("update password", async ({ page }) => {
await page.getByRole("button", { name: "Logout" }).click();

// login modal
page.goto("/#/config");
await page.getByTestId("topnavigation-button").click();
await expect(page.getByRole("button", { name: "Logout" })).not.toBeVisible();
await page.getByRole("link", { name: "Configuration" }).click();
const loginNew = page.getByTestId("login-modal");
await loginNew.getByLabel("Password").fill(newPassword);
await loginNew.getByRole("button", { name: "Login" }).click();
await expect(page.getByRole("heading", { name: "Configuration" })).toBeVisible();
await expect(loginNew).not.toBeVisible();

// revert password
await page.getByTestId("generalconfig-password").getByRole("button", { name: "edit" }).click();
Expand Down

0 comments on commit c0da9a8

Please sign in to comment.