1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

updated hardware wallet text (#20026)

This commit is contained in:
Nidhi Kumari 2023-07-14 21:12:01 +05:30 committed by GitHub
parent 45b7b0ca76
commit 7bdd76a4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -249,6 +249,9 @@
"addFromAListOfPopularNetworks": { "addFromAListOfPopularNetworks": {
"message": "Add from a list of popular networks or add a network manually. Only interact with the entities you trust." "message": "Add from a list of popular networks or add a network manually. Only interact with the entities you trust."
}, },
"addHardwareWallet": {
"message": "Add hardware wallet"
},
"addMemo": { "addMemo": {
"message": "Add memo" "message": "Add memo"
}, },
@ -1758,9 +1761,6 @@
"hardware": { "hardware": {
"message": "Hardware" "message": "Hardware"
}, },
"hardwareWallet": {
"message": "Hardware wallet"
},
"hardwareWalletConnected": { "hardwareWalletConnected": {
"message": "Hardware wallet connected" "message": "Hardware wallet connected"
}, },

View File

@ -374,7 +374,7 @@ describe('Import flow', function () {
// choose Connect hardware wallet from the account menu // choose Connect hardware wallet from the account menu
await driver.clickElement('[data-testid="account-menu-icon"]'); await driver.clickElement('[data-testid="account-menu-icon"]');
await driver.clickElement({ await driver.clickElement({
text: 'Hardware wallet', text: 'Add hardware wallet',
tag: 'button', tag: 'button',
}); });
await driver.delay(regularDelayMs); await driver.delay(regularDelayMs);

View File

@ -260,7 +260,7 @@ export const AccountListMenu = ({ onClose }) => {
} }
}} }}
> >
{t('hardwareWallet')} {t('addHardwareWallet')}
</ButtonLink> </ButtonLink>
</Box> </Box>
{ {

View File

@ -62,7 +62,7 @@ describe('AccountListMenu', () => {
expect(getByPlaceholderText('Search accounts')).toBeInTheDocument(); expect(getByPlaceholderText('Search accounts')).toBeInTheDocument();
expect(getByText('Add account')).toBeInTheDocument(); expect(getByText('Add account')).toBeInTheDocument();
expect(getByText('Import 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', () => { it('shows the account creation UI when Add Account is clicked', () => {
@ -87,7 +87,7 @@ describe('AccountListMenu', () => {
it('navigates to hardware wallet connection screen when clicked', () => { it('navigates to hardware wallet connection screen when clicked', () => {
const { getByText } = render(); const { getByText } = render();
fireEvent.click(getByText('Hardware wallet')); fireEvent.click(getByText('Add hardware wallet'));
expect(historyPushMock).toHaveBeenCalledWith(CONNECT_HARDWARE_ROUTE); expect(historyPushMock).toHaveBeenCalledWith(CONNECT_HARDWARE_ROUTE);
}); });