From 2d7bbe4d736484e856357bbfe4efb345b3c2633a Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 4 Jun 2024 17:57:57 +0200 Subject: [PATCH] test: unflake should pass "key" attribute from JSX in variable (#31141) --- tests/playwright-test/playwright.ct-react.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/playwright-test/playwright.ct-react.spec.ts b/tests/playwright-test/playwright.ct-react.spec.ts index 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 ); 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 });