We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d8901 commit 071d949Copy full SHA for 071d949
e2e/pin-input.e2e.ts
@@ -105,4 +105,15 @@ test.describe("pin input", () => {
105
await page.locator(first).fill("1")
106
await expect(page.locator(first)).toHaveValue("1")
107
})
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
+ })
119
0 commit comments