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 should pass "key" attribute from JSX in variable (#31141)
Max Schmitt2d7bbe4d7364
diff --git a/tests/playwright-test/playwright.ct-react.spec.ts b/tests/playwright-test/playwright.ct-react.spec.tsindex e7f938fb4a..ed3fa47caf 100644--- a/tests/playwright-test/playwright.ct-react.spec.ts+++ b/tests/playwright-test/playwright.ct-react.spec.ts@@ -290,9 +290,9 @@ test('should pass "key" attribute from JSX in variable', async ({ runInlineTest</Container>);const button = component.getByRole('button');- expect(button).toHaveText("1");+ await expect(button).toHaveText("1");await button.click();- expect(button).toHaveText("10");+ await expect(button).toHaveText("10");});`,}, { workers: 1 });