File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,8 @@ describe('@lightning - Lightning', () => {
114114 await swipeFullScreen ( 'down' ) ;
115115 const response = await lnd . sendPaymentSync ( { paymentRequest : receive , amt : '10000' } ) ;
116116 console . info ( { response } ) ;
117- await elementById ( 'ReceivedTransaction' ) . waitForDisplayed ( ) ;
118- await tap ( 'ReceivedTransactionButton' ) ;
119- await sleep ( 1000 ) ;
117+ await acknowledgeReceivedPayment ( ) ;
118+ await sleep ( 500 ) ;
120119 if ( driver . isIOS ) {
121120 await dismissBackgroundPaymentsTimedSheet ( { triggerTimedSheet : driver . isIOS } ) ;
122121 await dismissQuickPayIntro ( { triggerTimedSheet : driver . isIOS } ) ;
@@ -148,8 +147,7 @@ describe('@lightning - Lightning', () => {
148147 const invoice2 = await getAddressFromQRCode ( 'lightning' ) ;
149148 await swipeFullScreen ( 'down' ) ;
150149 await lnd . sendPaymentSync ( { paymentRequest : invoice2 } ) ;
151- await elementById ( 'ReceivedTransaction' ) . waitForDisplayed ( ) ;
152- await tap ( 'ReceivedTransactionButton' ) ;
150+ await acknowledgeReceivedPayment ( ) ;
153151 await sleep ( 500 ) ;
154152 await expect ( totalBalance ) . toHaveText ( '11 111' ) ; // 1k onchain + 10 111 lightning
155153 await expectTextWithin ( 'ActivitySpending' , '10 111' ) ;
You can’t perform that action at this time.
0 commit comments