test: unflake should pass "key" attribute from JSX in variable

This commit is contained in:
Max Schmitt 2024-06-04 10:25:34 +02:00
parent 9e6f051488
commit ad54dc512f

View file

@ -290,9 +290,9 @@ test('should pass "key" attribute from JSX in variable', async ({ runInlineTest
</Container> </Container>
); );
const button = component.getByRole('button'); const button = component.getByRole('button');
expect(button).toHaveText("1"); await expect(button).toHaveText("1");
await button.click(); await button.click();
expect(button).toHaveText("10"); await expect(button).toHaveText("10");
}); });
`, `,
}, { workers: 1 }); }, { workers: 1 });