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:
parent
45b7b0ca76
commit
7bdd76a4ad
6
app/_locales/en/messages.json
generated
6
app/_locales/en/messages.json
generated
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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);
|
||||||
|
@ -260,7 +260,7 @@ export const AccountListMenu = ({ onClose }) => {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t('hardwareWallet')}
|
{t('addHardwareWallet')}
|
||||||
</ButtonLink>
|
</ButtonLink>
|
||||||
</Box>
|
</Box>
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user