Skip to content

Commit

Permalink
address flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
cortisiko committed May 24, 2024
1 parent 5df3594 commit 0c1ad8e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/pages/Send/AmountView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class AmountView {
await Gestures.typeTextAndHideKeyboard(this.amountInputField, amount);
}

async tapInputField() {
await Gestures.waitAndTap(this.amountInputField);
}

async tapCurrencySwitch() {
await Gestures.waitAndTap(this.currencySwitch);
}
Expand Down
1 change: 1 addition & 0 deletions e2e/specs/confirmations/send-to-contact.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe(SmokeConfirmations('Send ETH to Contact'), () => {
await SendView.tapNextButton();

await Assertions.checkIfVisible(await AmountView.container);
await AmountView.tapInputField();
await AmountView.typeInTransactionAmount(AMOUNT);
await AmountView.tapNextButton();
await Assertions.checkIfTextIsDisplayed('Test Name 1');
Expand Down
1 change: 1 addition & 0 deletions e2e/specs/confirmations/send-to-contract-address.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe(SmokeConfirmations('Send ETH to Contract'), () => {
await Assertions.checkIfVisible(await SendView.iUnderstandWarningButton);
await SendView.tapIUnderstandButton();
await Assertions.checkIfVisible(await AmountView.container);
await AmountView.tapInputField();

await AmountView.typeInTransactionAmount(AMOUNT);
await AmountView.tapNextButton();
Expand Down

0 comments on commit 0c1ad8e

Please sign in to comment.