From 9a00c7319b060d5201355aab365f230a52e0b07b Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 25 Jul 2022 12:31:00 -1000 Subject: [PATCH] test: add a passing test for issue (#15928) --- tests/page/page-fill.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/page/page-fill.spec.ts b/tests/page/page-fill.spec.ts index dc2e3afea9..40fe973882 100644 --- a/tests/page/page-fill.spec.ts +++ b/tests/page/page-fill.spec.ts @@ -342,3 +342,12 @@ it('should not throw when fill causes navigation', async ({ page, server }) => { ]); expect(page.url()).toContain('empty.html'); }); + +it('fill back to back', async ({ page }) => { + it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/15925' }); + await page.setContent(``); + await page.fill('id=one', 'first value'); + await page.fill('id=two', 'second value'); + await expect(page.locator('id=one')).toHaveValue('first value'); + await expect(page.locator('id=two')).toHaveValue('second value'); +});