mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
updated hardware wallet text (#20026)
This commit is contained in:
parent
45b7b0ca76
commit
7bdd76a4ad
6
app/_locales/en/messages.json
generated
6
app/_locales/en/messages.json
generated
@ -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"
|
||||
},
|
||||
|
@ -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);
|
||||
|
@ -260,7 +260,7 @@ export const AccountListMenu = ({ onClose }) => {
|
||||
}
|
||||
}}
|
||||
>
|
||||
{t('hardwareWallet')}
|
||||
{t('addHardwareWallet')}
|
||||
</ButtonLink>
|
||||
</Box>
|
||||
{
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user