Skip to content

Commit 96eccff

Browse files
committed
fix failing test.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent 84d2e8b commit 96eccff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ui/NewChatPageTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('NewChatPage', () => {
7676
});
7777
const spy = jest.spyOn(SectionList.prototype, 'scrollToLocation');
7878

79-
const addButton = screen.getAllByText(translateLocal('newChatPage.addToGroup')).at(0);
79+
const addButton = await waitFor(() => screen.getAllByText(translateLocal('newChatPage.addToGroup')).at(0));
8080
if (addButton) {
8181
fireEvent.press(addButton);
8282
expect(spy).toHaveBeenCalledWith(expect.objectContaining({itemIndex: 0}));

0 commit comments

Comments
 (0)