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(webkit): unskip right-click tests fixed by browser roll (#41602)
Yury Semikhatskybd390faeaa7a
diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.tsindex bfe0691e5c..8649e738ac 100644--- a/tests/page/page-click.spec.ts+++ b/tests/page/page-click.spec.ts@@ -1215,18 +1215,13 @@ it('should fire contextmenu event on right click in correct order', async ({ pagconst entries = [];page.on('console', message => entries.push(message.text()));await page.getByRole('button', { name: 'Click me' }).click({ button: 'right' });- if (browserName === 'webkit')- await expect.poll(() => entries).toEqual(['mousedown', 'contextmenu']);- else if (browserName === 'chromium' && isWindows)+ if (browserName === 'chromium' && isWindows)await expect.poll(() => entries).toEqual(['mousedown', 'mouseup', 'contextmenu']);elseawait expect.poll(() => entries).toEqual(['mousedown', 'contextmenu', 'mouseup']);});-it('should click after a right click', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39246' } }, async ({ page, browserName }) => {- // On webkit the native context menu opened by the right click swallows the- // following left click, so the button never receives it.- it.fixme(browserName === 'webkit');+it('should click after a right click', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/39246' } }, async ({ page }) => {await page.setContent(`<button>Click me</button><script>