Skip to content

Commit 071d949

Browse files
authored
test: add new e2e testing case for pin input (#2308)
1 parent 82d8901 commit 071d949

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

e2e/pin-input.e2e.ts

+11
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,15 @@ test.describe("pin input", () => {
105105
await page.locator(first).fill("1")
106106
await expect(page.locator(first)).toHaveValue("1")
107107
})
108+
109+
test("[on edit] should allow to edit the existing value", async ({ page }) => {
110+
await page.locator(first).fill("1")
111+
await page.locator(second).fill("2")
112+
await page.locator(third).fill("3")
113+
await page.locator(second).focus()
114+
await page.locator(second).fill("4")
115+
await expect(page.locator(second)).toHaveValue("4")
116+
await expect(page.locator(third)).toHaveValue("3")
117+
await expect(page.locator(third)).toBeFocused()
118+
})
108119
})

0 commit comments

Comments
 (0)