@@ -22,11 +22,12 @@ import {
2222 handleAndroidAlert ,
2323 dismissBackgroundPaymentsTimedSheet ,
2424 acknowledgeReceivedPayment ,
25+ editRecipientAddress ,
2526 typeRecipientInput ,
27+ tap ,
2628} from '../helpers/actions' ;
2729import { lndConfig } from '../helpers/constants' ;
2830import { reinstallApp } from '../helpers/setup' ;
29- import { confirmInputOnKeyboard , tap , typeText } from '../helpers/actions' ;
3031import {
3132 connectToLND ,
3233 getLDKNodeID ,
@@ -284,24 +285,7 @@ describe('@send - Send', () => {
284285 const reviewAmt = await elementByIdWithin ( 'ReviewAmount-primary' , 'MoneyText' ) ;
285286 await reviewAmt . waitForDisplayed ( ) ;
286287 await expect ( reviewAmt ) . toHaveText ( '2 000' ) ;
287- await tap ( 'ReviewUri' ) ;
288- await sleep ( 2000 ) ;
289- await elementById ( 'RecipientInput' ) . waitForDisplayed ( ) ;
290- await sleep ( 500 ) ;
291- try {
292- console . info ( 'Typing on the RecipientInput...' ) ;
293- console . info ( { onchainAddress } ) ;
294- await typeText ( 'RecipientInput' , onchainAddress ) ;
295- await confirmInputOnKeyboard ( ) ;
296- await elementById ( 'AddressContinue' ) . waitForEnabled ( ) ;
297- await sleep ( 500 ) ;
298- } catch {
299- console . warn ( 'Typing on the RecipientInput failed, trying again...' ) ;
300- await typeText ( 'RecipientInput' , onchainAddress ) ;
301- await confirmInputOnKeyboard ( ) ;
302- await elementById ( 'AddressContinue' ) . waitForEnabled ( ) ;
303- await sleep ( 500 ) ;
304- }
288+ await editRecipientAddress ( onchainAddress ) ;
305289 await tap ( 'AddressContinue' ) ;
306290 await elementById ( 'AssetButton-savings' ) . waitForDisplayed ( ) ;
307291 await tap ( 'N2' ) ;
0 commit comments