Skip to content

Commit

Permalink
fix: sleep before .tapReturn()
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Feb 2, 2024
1 parent 009ab52 commit ee41798
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/lightning.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ d('Lightning', () => {
await element(by.id('RecipientManual')).tap();
await element(by.id('RecipientInput')).replaceText(invoice3);
await element(by.id('RecipientInput')).tapReturnKey();
await sleep(1000); // wait for keyboard to hide
await element(by.id('AddressContinue')).tap();
await element(
by.id('N1').withAncestor(by.id('SendAmountNumberPad')),
Expand All @@ -230,6 +231,7 @@ d('Lightning', () => {
await element(by.id('RecipientManual')).tap();
await element(by.id('RecipientInput')).replaceText(invoice4);
await element(by.id('RecipientInput')).tapReturnKey();
await sleep(1000); // wait for keyboard to hide
await element(by.id('AddressContinue')).tap();

// Review & Send
Expand Down
2 changes: 2 additions & 0 deletions e2e/onchain.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ d('Onchain', () => {
await element(by.id('RecipientManual')).tap();
await element(by.id('RecipientInput')).replaceText(coreAddress);
await element(by.id('RecipientInput')).tapReturnKey();
await sleep(1000); // wait for keyboard to hide
await element(by.id('AddressContinue')).tap();

// Amount / NumberPad
Expand Down Expand Up @@ -272,6 +273,7 @@ d('Onchain', () => {
await element(by.id('RecipientManual')).tap();
await element(by.id('RecipientInput')).replaceText(coreAddress);
await element(by.id('RecipientInput')).tapReturnKey();
await sleep(1000); // wait for keyboard to hide
await element(by.id('AddressContinue')).tap();

// enter amount that would leave dust
Expand Down
2 changes: 2 additions & 0 deletions e2e/security.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ d('Settings Security And Privacy', () => {
await element(by.id('RecipientManual')).tap();
await element(by.id('RecipientInput')).replaceText(coreAddress);
await element(by.id('RecipientInput')).tapReturnKey();
await sleep(1000); // wait for keyboard to hide
await element(by.id('AddressContinue')).tap();
await element(by.id('N1').withAncestor(by.id('SendAmountNumberPad'))).tap();
await element(
Expand Down Expand Up @@ -192,6 +193,7 @@ d('Settings Security And Privacy', () => {
await element(by.id('RecipientManual')).tap();
await element(by.id('RecipientInput')).replaceText(coreAddress);
await element(by.id('RecipientInput')).tapReturnKey();
await sleep(1000); // wait for keyboard to hide
await element(by.id('AddressContinue')).tap();
await element(by.id('N1').withAncestor(by.id('SendAmountNumberPad'))).tap();
await element(
Expand Down

0 comments on commit ee41798

Please sign in to comment.