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: mouse wheel flakey test (#38993)
Pavel Feldman2d4d181106a0
diff --git a/tests/mcp/cli.spec.ts b/tests/mcp/cli.spec.tsindex 2114f69eb9..0f533b125d 100644--- a/tests/mcp/cli.spec.ts+++ b/tests/mcp/cli.spec.ts@@ -255,8 +255,8 @@ test.describe('mouse', () => {await cli('mouseup');await cli('mousewheel', '10', '5');- const { snapshot } = await cli('snapshot');- expect(snapshot).toContain('wheel 5 10');++ await expect.poll(() => cli('snapshot').then(result => result.snapshot)).toContain('wheel 5 10');});});