diff --git a/test/e2e/helpers.js b/test/e2e/helpers.js index ba32c94cabec..cab7c2fb1157 100644 --- a/test/e2e/helpers.js +++ b/test/e2e/helpers.js @@ -672,6 +672,14 @@ const openDapp = async (driver, contract = null, dappURL = DAPP_URL) => { : await driver.openNewPage(dappURL); }; +const openDappConnectionsPage = async (driver) => { + await driver.openNewPage( + `${driver.extensionUrl}/home.html#connections/${encodeURIComponent( + DAPP_URL, + )}`, + ); +}; + const createDappTransaction = async (driver, transaction) => { await openDapp( driver, @@ -1150,6 +1158,7 @@ module.exports = { importWrongSRPOnboardingFlow, testSRPDropdownIterations, openDapp, + openDappConnectionsPage, createDappTransaction, switchToOrOpenDapp, connectToDapp, diff --git a/test/e2e/tests/multichain/connection-page.spec.js b/test/e2e/tests/multichain/connection-page.spec.js index e5594de82840..2d1d2f2d106c 100644 --- a/test/e2e/tests/multichain/connection-page.spec.js +++ b/test/e2e/tests/multichain/connection-page.spec.js @@ -183,4 +183,37 @@ describe('Connections page', function () { }, ); }); + + // Skipped until issue where firefox connecting to dapp is resolved. + // it('shows that the account is connected to the dapp', async function () { + // await withFixtures( + // { + // dapp: true, + // fixtures: new FixtureBuilder().build(), + // title: this.test.fullTitle(), + // ganacheOptions: defaultGanacheOptions, + // }, + // async ({ driver, ganacheServer }) => { + // const ACCOUNT = '0x5CfE73b6021E818B776b421B1c4Db2474086a7e1'; + // const SHORTENED_ACCOUNT = shortenAddress(ACCOUNT); + // await logInWithBalanceValidation(driver, ganacheServer); + // await openDappConnectionsPage(driver); + // // Verify that there are no connected accounts + // await driver.assertElementNotPresent( + // '[data-testid="account-list-address"]', + // ); + + // await connectToDapp(driver); + // await openDappConnectionsPage(driver); + + // const account = await driver.findElement( + // '[data-testid="account-list-address"]', + // ); + // const accountAddress = await account.getText(); + + // // Dapp should contain single connected account address + // assert.strictEqual(accountAddress, SHORTENED_ACCOUNT); + // }, + // ); + // }); }); diff --git a/ui/components/multichain/account-list-item/__snapshots__/account-list-item.test.js.snap b/ui/components/multichain/account-list-item/__snapshots__/account-list-item.test.js.snap index 0b2b13a29277..ae53a1353084 100644 --- a/ui/components/multichain/account-list-item/__snapshots__/account-list-item.test.js.snap +++ b/ui/components/multichain/account-list-item/__snapshots__/account-list-item.test.js.snap @@ -262,6 +262,7 @@ exports[`AccountListItem renders AccountListItem component and shows account nam >
bc1qn3s...5eker
@@ -557,6 +558,7 @@ exports[`AccountListItem renders AccountListItem component and shows account nam >0x0DCD5...3E7bc
diff --git a/ui/components/multichain/account-list-item/account-list-item.js b/ui/components/multichain/account-list-item/account-list-item.js index c3e09207cb7a..2b48bcb79baf 100644 --- a/ui/components/multichain/account-list-item/account-list-item.js +++ b/ui/components/multichain/account-list-item/account-list-item.js @@ -320,7 +320,11 @@ export const AccountListItem = ({ justifyContent={JustifyContent.spaceBetween} >0x0DCD5...3E7bc
diff --git a/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap b/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap index 59f5db9f8385..a3ee231d6ae2 100644 --- a/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap +++ b/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap @@ -489,6 +489,7 @@ exports[`SendPage render and initialization should render correctly even when a >0x0
diff --git a/ui/components/multichain/pages/send/components/__snapshots__/your-accounts.test.tsx.snap b/ui/components/multichain/pages/send/components/__snapshots__/your-accounts.test.tsx.snap index 411ee70e4ea3..901e7def9c2c 100644 --- a/ui/components/multichain/pages/send/components/__snapshots__/your-accounts.test.tsx.snap +++ b/ui/components/multichain/pages/send/components/__snapshots__/your-accounts.test.tsx.snap @@ -265,6 +265,7 @@ exports[`SendPageYourAccounts render renders correctly 1`] = ` >0x0DCD5...3E7bc
@@ -561,6 +562,7 @@ exports[`SendPageYourAccounts render renders correctly 1`] = ` >0xEC1Ad...9251B
@@ -857,6 +859,7 @@ exports[`SendPageYourAccounts render renders correctly 1`] = ` >0xc42ED...D8813
@@ -1162,6 +1165,7 @@ exports[`SendPageYourAccounts render renders correctly 1`] = ` >0xeB9e6...64823
@@ -1458,6 +1462,7 @@ exports[`SendPageYourAccounts render renders correctly 1`] = ` >0xb5526...FEe5D
@@ -1767,6 +1772,7 @@ exports[`SendPageYourAccounts render renders correctly 1`] = ` >0xca8f1...Cf281
diff --git a/ui/pages/confirmations/confirmation/templates/__snapshots__/remove-snap-account.test.js.snap b/ui/pages/confirmations/confirmation/templates/__snapshots__/remove-snap-account.test.js.snap index 7a411efb53ed..e0305e1c6533 100644 --- a/ui/pages/confirmations/confirmation/templates/__snapshots__/remove-snap-account.test.js.snap +++ b/ui/pages/confirmations/confirmation/templates/__snapshots__/remove-snap-account.test.js.snap @@ -361,6 +361,7 @@ exports[`remove-snap-account confirmation should match snapshot 1`] = ` >0x0DCD5...3E7bc