diff --git a/e2e-tests/popup/transfers/casper-native-transfer.spec.ts b/e2e-tests/popup/transfers/casper-native-transfer.spec.ts index 75c2103b2..a4eb4a2ee 100644 --- a/e2e-tests/popup/transfers/casper-native-transfer.spec.ts +++ b/e2e-tests/popup/transfers/casper-native-transfer.spec.ts @@ -30,9 +30,21 @@ popup.describe('Popup UI: Casper Native Transfer', () => { ).toBeDisabled(); await popupPage - .getByPlaceholder('Public key', { exact: true }) + .getByPlaceholder('Public key or name', { exact: true }) .fill(DEFAULT_SECOND_ACCOUNT.publicKey); + await popupExpect( + popupPage.getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + ).toBeVisible(); + + await popupPage + .getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + .click(); + await popupPage.getByRole('button', { name: 'Next' }).click(); await popupExpect( @@ -100,9 +112,21 @@ popup.describe('Popup UI: Casper Native Transfer', () => { ).toBeDisabled(); await popupPage - .getByPlaceholder('Public key', { exact: true }) + .getByPlaceholder('Public key or name', { exact: true }) .fill(DEFAULT_SECOND_ACCOUNT.publicKey); + await popupExpect( + popupPage.getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + ).toBeVisible(); + + await popupPage + .getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + .click(); + await popupPage.getByRole('button', { name: 'Next' }).click(); await popupExpect( diff --git a/e2e-tests/popup/transfers/erc-20-transfer.spec.ts b/e2e-tests/popup/transfers/erc-20-transfer.spec.ts index 7bfd4ae8e..ee794ed82 100644 --- a/e2e-tests/popup/transfers/erc-20-transfer.spec.ts +++ b/e2e-tests/popup/transfers/erc-20-transfer.spec.ts @@ -47,9 +47,21 @@ popup.describe('Popup UI: ERC-20 transfer', () => { ).toBeDisabled(); await popupPage - .getByPlaceholder('Public key', { exact: true }) + .getByPlaceholder('Public key or name', { exact: true }) .fill(DEFAULT_SECOND_ACCOUNT.publicKey); + await popupExpect( + popupPage.getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + ).toBeVisible(); + + await popupPage + .getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + .click(); + await popupPage.getByRole('button', { name: 'Next' }).click(); await popupExpect( @@ -137,9 +149,21 @@ popup.describe('Popup UI: ERC-20 transfer', () => { ).toBeDisabled(); await popupPage - .getByPlaceholder('Public key', { exact: true }) + .getByPlaceholder('Public key or name', { exact: true }) .fill(DEFAULT_SECOND_ACCOUNT.publicKey); + await popupExpect( + popupPage.getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + ).toBeVisible(); + + await popupPage + .getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + .click(); + await popupPage.getByRole('button', { name: 'Next' }).click(); await popupExpect( diff --git a/e2e-tests/popup/transfers/nft-transfer.spec.ts b/e2e-tests/popup/transfers/nft-transfer.spec.ts index 3a2c5eb98..750c0c5ea 100644 --- a/e2e-tests/popup/transfers/nft-transfer.spec.ts +++ b/e2e-tests/popup/transfers/nft-transfer.spec.ts @@ -40,9 +40,21 @@ popup.describe('Popup UI: NFT Transfer', () => { ).toBeDisabled(); await popupPage - .getByPlaceholder('Public key', { exact: true }) + .getByPlaceholder('Public key or name', { exact: true }) .fill(DEFAULT_SECOND_ACCOUNT.publicKey); + await popupExpect( + popupPage.getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + ).toBeVisible(); + + await popupPage + .getByText(DEFAULT_SECOND_ACCOUNT.mediumTruncatedPublicKey, { + exact: true + }) + .click(); + await popupPage.getByRole('button', { name: 'Next' }).click(); await popupExpect(