1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02: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": {
"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": {
"message": "Add memo"
},
@ -1758,9 +1761,6 @@
"hardware": {
"message": "Hardware"
},
"hardwareWallet": {
"message": "Hardware wallet"
},
"hardwareWalletConnected": {
"message": "Hardware wallet connected"
},

View File

@ -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);

View File

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

View File

@ -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', () => {
@ -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);
});