Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix retargeting test on firefox (#21157)
Andrey Lushnikovdd9a8da901e8
diff --git a/tests/page/retarget.spec.ts b/tests/page/retarget.spec.tsindex 06b37518e7..e7fb10381f 100644--- a/tests/page/retarget.spec.ts+++ b/tests/page/retarget.spec.ts@@ -239,7 +239,7 @@ it('input value retargeting', async ({ page, browserName }) => {await expect(target).toHaveValue('bar');await target.selectText();- if (browserName === 'chromium' || browserName === 'webkit') {+ if (browserName === 'firefox' || browserName === 'webkit') {expect(await page.locator('#target').evaluate((el: HTMLInputElement) => el.selectionStart)).toBe(0);expect(await page.locator('#target').evaluate((el: HTMLInputElement) => el.selectionEnd)).toBe(3);} else {