diff options
Diffstat (limited to '__tests__/view/shell')
-rw-r--r-- | __tests__/view/shell/mobile/Menu.test.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/__tests__/view/shell/mobile/Menu.test.tsx b/__tests__/view/shell/mobile/Menu.test.tsx index 0bffaff7f..313259041 100644 --- a/__tests__/view/shell/mobile/Menu.test.tsx +++ b/__tests__/view/shell/mobile/Menu.test.tsx @@ -46,10 +46,10 @@ describe('Menu', () => { }) it("presses notifications menu item' button", () => { - const {getAllByTestId} = render(<Menu {...mockedProps} />) + const {getByTestId} = render(<Menu {...mockedProps} />) - const menuItemButton = getAllByTestId('menuItemButton') - fireEvent.press(menuItemButton[1]) + const menuItemButton = getByTestId('menuItemButton-Notifications') + fireEvent.press(menuItemButton) expect(onCloseMock).toHaveBeenCalled() expect(mockedNavigationStore.switchTo).toHaveBeenCalledWith(1, true) |