Skip to content

Commit

Permalink
chore: update selector for settings menu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Feb 26, 2024
1 parent aa5110f commit 5807df7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/features/container/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Outlet, useLocation, useNavigate } from 'react-router-dom';

import { ChainID } from '@stacks/transactions';
import { OnboardingSelectors } from '@tests/selectors/onboarding.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { Box } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';

Expand Down Expand Up @@ -101,7 +102,9 @@ export function Container() {
settingsMenu={
isKnownPopupRoute(pathname) ? null : (
<Settings
triggerButton={<HamburgerIcon />}
triggerButton={
<HamburgerIcon data-testid={SettingsSelectors.SettingsMenuBtn} />
}
toggleSwitchAccount={() => setIsShowingSwitchAccount(!isShowingSwitchAccount)}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion tests/selectors/settings.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export enum SettingsSelectors {
BtnAddNetwork = 'btn-add-network',
ShowSecretKeyBtn = 'show-secret-key-btn',
GetSupportMenuItem = 'get-support-menu-item',
SettingsMenuBtn = 'settings-menu-btn',
SettingsMenuBtn = 'settings-menu--trigger',
SwitchAccountTrigger = 'switch-account-trigger',
SwitchAccountMenuItem = 'switch-account-menu-item',
SwitchAccountItemIndex = 'switch-account-item-[index]',
Expand Down

0 comments on commit 5807df7

Please sign in to comment.