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

This commit is contained in:
Pavel Feldman 2022-07-25 12:31:00 -10:00 committed by GitHub
parent 6fcc916f00
commit 9a00c7319b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
});