Skip to content

Commit 37cf43a

Browse files
committed
fix perf tests
1 parent 11d5be6 commit 37cf43a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/perf-test/SidebarLinks.perf-test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ describe('SidebarLinks', () => {
9494

9595
test('[SidebarLinks] should click on list item', async () => {
9696
const scenario = async () => {
97-
await wrapInAct(async () => {
97+
await waitFor(async () => {
9898
const button = await screen.findByTestId('1');
99-
fireEvent.press(button);
99+
await wrapInAct(() => {
100+
fireEvent.press(button);
101+
});
100102
});
101103
};
102104

0 commit comments

Comments
 (0)