Skip to content

Commit

Permalink
Added logic to handle previous tapEstimatedGasLink functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelSalas committed Sep 11, 2024
1 parent ceff9de commit 322c948
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions e2e/pages/Send/TransactionConfirmView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion e2e/specs/wallet/suggestedGasApi.mock.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 322c948

Please sign in to comment.