Skip to content

Commit

Permalink
Fix perf test attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Sep 11, 2024
1 parent c9b41ad commit 593c33a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/perf-test/SidebarLinks.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ describe('SidebarLinks', () => {

// Initialize the network key for OfflineWithFeedback
Onyx.merge(ONYXKEYS.NETWORK, {isOffline: false});
Onyx.clear().then(waitForBatchedUpdates);
TestHelper.signInWithTestUser(1, 'email1@test.com', undefined, undefined, 'One').then(waitForBatchedUpdates);
});

afterEach(() => {
Onyx.clear();
});

test('[SidebarLinks] should render Sidebar with 500 reports stored', async () => {
Expand Down Expand Up @@ -87,7 +91,7 @@ describe('SidebarLinks', () => {
* Query for display names of participants [1, 2].
* This will ensure that the sidebar renders a list of items.
*/
await screen.findAllByText('One, Two');
await screen.findAllByText('Email Two');
};

await waitForBatchedUpdates();
Expand Down

0 comments on commit 593c33a

Please sign in to comment.