@@ -25,6 +25,7 @@ import {
2525 doNavigationClose ,
2626 acknowledgeReceivedPayment ,
2727 waitForBackup ,
28+ dismissBackgroundPaymentsTimedSheet ,
2829} from '../helpers/actions' ;
2930import { reinstallApp } from '../helpers/setup' ;
3031import { bitcoinURL , lndConfig } from '../helpers/constants' ;
@@ -112,7 +113,12 @@ describe('@lightning - Lightning', () => {
112113 await elementById ( 'ReceivedTransaction' ) . waitForDisplayed ( ) ;
113114 await tap ( 'ReceivedTransactionButton' ) ;
114115 await sleep ( 500 ) ;
115- await dismissQuickPayIntro ( ) ;
116+ if ( driver . isIOS ) {
117+ await dismissBackgroundPaymentsTimedSheet ( { triggerTimedSheet : driver . isIOS } ) ;
118+ await dismissQuickPayIntro ( { triggerTimedSheet : driver . isIOS } ) ;
119+ } else {
120+ await dismissQuickPayIntro ( ) ;
121+ }
116122 const totalBalance = await elementByIdWithin ( 'TotalBalance-primary' , 'MoneyText' ) ;
117123 await expect ( totalBalance ) . toHaveText ( '11 000' ) ; // 1k onchain + 10k lightning
118124 await expectTextWithin ( 'ActivitySpending' , '10 000' ) ;
@@ -196,6 +202,7 @@ describe('@lightning - Lightning', () => {
196202 await swipeFullScreen ( 'up' ) ;
197203 await swipeFullScreen ( 'up' ) ;
198204 await tap ( 'ActivityShowAll' ) ;
205+
199206 // All transactions
200207 await expectTextWithin ( 'Activity-1' , '-' ) ;
201208 await expectTextWithin ( 'Activity-2' , '-' ) ;
@@ -280,7 +287,9 @@ describe('@lightning - Lightning', () => {
280287 await mineBlocks ( rpc , 6 ) ;
281288 await electrum ?. waitForSync ( ) ;
282289 await elementById ( 'Channel' ) . waitForDisplayed ( { reverse : true } ) ;
283- await tap ( 'NavigationBack' ) ;
290+ if ( driver . isAndroid ) {
291+ await tap ( 'NavigationBack' ) ;
292+ }
284293 await doNavigationClose ( ) ;
285294
286295 await swipeFullScreen ( 'up' ) ;
0 commit comments