From 322c9487e235278ead64c4c0b2dcc4a81676754c Mon Sep 17 00:00:00 2001 From: SamuelSalas Date: Tue, 10 Sep 2024 21:50:28 -0600 Subject: [PATCH] Added logic to handle previous tapEstimatedGasLink functionality --- e2e/pages/Send/TransactionConfirmView.js | 8 ++++++-- e2e/specs/wallet/suggestedGasApi.mock.spec.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/e2e/pages/Send/TransactionConfirmView.js b/e2e/pages/Send/TransactionConfirmView.js index 0765b12b143..babe0bb1ec9 100644 --- a/e2e/pages/Send/TransactionConfirmView.js +++ b/e2e/pages/Send/TransactionConfirmView.js @@ -85,10 +85,14 @@ class TransactionConfirmationView { await Gestures.waitAndTap(this.cancelButton); } - async tapEstimatedGasLink() { + async tapEstimatedGasLink(index = 0) { await Gestures.swipe(this.transactionAmount, 'up', 'fast'); - await Gestures.TapAtIndex(this.estimatedGasLink, 1); + if (index !== 0) { + await Gestures.waitAndTap(this.estimatedGasLink); + } else { + await Gestures.TapAtIndex(this.estimatedGasLink, index); + } } async tapLowPriorityGasOption() { diff --git a/e2e/specs/wallet/suggestedGasApi.mock.spec.js b/e2e/specs/wallet/suggestedGasApi.mock.spec.js index 9e7566f95d1..8f72c35abe6 100644 --- a/e2e/specs/wallet/suggestedGasApi.mock.spec.js +++ b/e2e/specs/wallet/suggestedGasApi.mock.spec.js @@ -66,7 +66,7 @@ describe(SmokeCore('Mock suggestedGasApi fallback to legacy when EIP1559 endpoin await SendView.tapNextButton(); await AmountView.typeInTransactionAmount(AMOUNT); await AmountView.tapNextButton(); - await TransactionConfirmView.tapEstimatedGasLink(); + await TransactionConfirmView.tapEstimatedGasLink(1); await Assertions.checkIfVisible( TransactionConfirmView.editPriorityModal, );