test: unflake should pass "key" attribute from JSX in variable (#31141)

This commit is contained in:
Max Schmitt 2024-06-04 17:57:57 +02:00 committed by GitHub
parent c516ba0ec8
commit 2d7bbe4d73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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