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: unflake click-timeout-4 (#4012)
Dmitry Gozmanab2714ed2909
diff --git a/test/click-timeout-4.spec.ts b/test/click-timeout-4.spec.tsindex c7f6cbf71f..59a7861889 100644--- a/test/click-timeout-4.spec.ts+++ b/test/click-timeout-4.spec.ts@@ -24,8 +24,8 @@ it('should timeout waiting for stable position', async ({page, server}) => {button.style.transition = 'margin 5s linear 0s';button.style.marginLeft = '200px';});- const error = await button.click({ timeout: 5000 }).catch(e => e);- expect(error.message).toContain('elementHandle.click: Timeout 5000ms exceeded.');+ const error = await button.click({ timeout: 3000 }).catch(e => e);+ expect(error.message).toContain('elementHandle.click: Timeout 3000ms exceeded.');expect(error.message).toContain('waiting for element to be visible, enabled and not moving');expect(error.message).toContain('element is moving - waiting');});