Skip to content

Commit

Permalink
updated hardware wallet text
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Jul 14, 2023
1 parent 751120b commit 4123475
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/e2e/tests/import-flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ describe('Import flow', function () {
// choose Connect hardware wallet from the account menu
await driver.clickElement('[data-testid="account-menu-icon"]');
await driver.clickElement({
text: 'Hardware wallet',
text: 'Add hardware wallet',
tag: 'button',
});
await driver.delay(regularDelayMs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export const AccountListMenu = ({ onClose }) => {
}
}}
>
{t('hardwareWallet')}
{t('addHardwareWallet')}
</ButtonLink>
</Box>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('AccountListMenu', () => {
expect(getByPlaceholderText('Search accounts')).toBeInTheDocument();
expect(getByText('Add account')).toBeInTheDocument();
expect(getByText('Import account')).toBeInTheDocument();
expect(getByText('Hardware wallet')).toBeInTheDocument();
expect(getByText('Add hardware wallet')).toBeInTheDocument();
});

it('shows the account creation UI when Add Account is clicked', () => {
Expand All @@ -87,7 +87,7 @@ describe('AccountListMenu', () => {

it('navigates to hardware wallet connection screen when clicked', () => {
const { getByText } = render();
fireEvent.click(getByText('Hardware wallet'));
fireEvent.click(getByText('Add hardware wallet'));
expect(historyPushMock).toHaveBeenCalledWith(CONNECT_HARDWARE_ROUTE);
});

Expand Down

0 comments on commit 4123475

Please sign in to comment.