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 });