diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-24 09:06:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 09:06:27 -0600 |
commit | 9027882fb401df2a9df6a89facb2bdb94b8b731b (patch) | |
tree | dc60ca1a2cc1be0838229f06b588f56871f2b91e /__tests__/view/shell/mobile/Menu.test.tsx | |
parent | 439305b57e0c20799d87baf92c067ec8e262ea13 (diff) | |
download | voidsky-9027882fb401df2a9df6a89facb2bdb94b8b731b.tar.zst |
Account switcher (#85)
* Update the account-create and signin views to use the design system. Also: - Add borderDark to the theme - Start to an account selector in the signin flow * Dark mode fixes in signin ui * Track multiple active accounts and provide account-switching UI * Add test tooling for an in-memory pds * Add complete integration tests for login and the account switcher
Diffstat (limited to '__tests__/view/shell/mobile/Menu.test.tsx')
-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) |