Skip to content

Commit

Permalink
fix: fixed screenshot comparison e2e authcode
Browse files Browse the repository at this point in the history
This test was failing due the click, keep the mouse on the top of the input. Triggering hover state.

With old tolerance this was ok, right now it fail the test.
  • Loading branch information
salvatorecriscioneweb committed Dec 22, 2023
1 parent 23397ae commit 85853f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/e2e/authcode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ test("Default: should change focus when the user finish the input", async ({

test("Password: should not print any character", async ({ page }) => {
await page.getByLabel("Character 1").click();
await page.mouse.move(0, 0); // Remove the mouse from the input, to avoid hover state
await page.getByLabel("Character 1").fill("1");
await page.getByLabel("Character 2").fill("1");
await page.getByLabel("Character 3").fill("1");
Expand Down

0 comments on commit 85853f6

Please sign in to comment.