Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: add a passing test for issue (#15928)

Pavel Feldman9a00c7319b06
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(`<input id="one"></input><input id="two"></input>`);
+ 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');
+});