From 01a4b698ff161806da35d12fcc18ec3c075d486c Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Mon, 21 Aug 2023 12:03:55 +0200 Subject: [PATCH] [FLASK] Fix regression in transaction confirmation tabs (#20267) * Fix regression in transaction confirmation tabs * Fix transaction insights e2e test --- test/e2e/snaps/test-snap-txinsights.spec.js | 5 +++++ .../confirm-page-container-content.component.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e/snaps/test-snap-txinsights.spec.js b/test/e2e/snaps/test-snap-txinsights.spec.js index 4130abb50..637dab89e 100644 --- a/test/e2e/snaps/test-snap-txinsights.spec.js +++ b/test/e2e/snaps/test-snap-txinsights.spec.js @@ -102,6 +102,11 @@ describe('Test Snap TxInsights', function () { 'MetaMask Notification', windowHandles, ); + await driver.delay(1000); + await driver.clickElement({ + text: 'Insights Example Snap', + tag: 'button', + }); // check that txinsightstest tab contains the right info await driver.delay(1000); diff --git a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js index c4d907462..456501e81 100644 --- a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js @@ -111,7 +111,7 @@ export default class ConfirmPageContainerContent extends Component { } = this.props; return ( - +