@@ -224,7 +224,7 @@ describe('@send - Send', () => {
224224 const { paymentRequest : invoice1 } = await lnd . addInvoice ( { } ) ;
225225 console . info ( { invoice1 } ) ;
226226 await sleep ( 1000 ) ;
227- await enterAddress ( invoice1 ) ;
227+ await enterAddress ( invoice1 , { acceptCameraPermission : false } ) ;
228228 await elementById ( 'AssetButton-spending' ) . waitForDisplayed ( ) ;
229229 await tap ( 'N2' ) ;
230230 await multiTap ( 'N0' , 3 ) ;
@@ -242,7 +242,7 @@ describe('@send - Send', () => {
242242 console . info ( 'Editing invoice on review screen...' ) ;
243243 const { paymentRequest : invoice2 } = await lnd . addInvoice ( { value : '2000' } ) ;
244244 console . info ( { invoice2 } ) ;
245- await enterAddress ( invoice2 ) ;
245+ await enterAddress ( invoice2 , { acceptCameraPermission : false } ) ;
246246 const reviewAmt = await elementByIdWithin ( 'ReviewAmount-primary' , 'MoneyText' ) ;
247247 await reviewAmt . waitForDisplayed ( ) ;
248248 await expect ( reviewAmt ) . toHaveText ( '2 000' ) ;
@@ -282,7 +282,7 @@ describe('@send - Send', () => {
282282 } ) ;
283283 console . info ( { unified1 } ) ;
284284 await sleep ( 1000 ) ;
285- await enterAddress ( unified1 ) ;
285+ await enterAddress ( unified1 , { acceptCameraPermission : false } ) ;
286286 await expect ( reviewAmt ) . toHaveText ( '1 000' ) ; // invoice amount
287287 await dragOnElement ( 'GRAB' , 'right' , 0.95 ) ;
288288 await elementById ( 'SendSuccess' ) . waitForDisplayed ( ) ;
@@ -304,7 +304,7 @@ describe('@send - Send', () => {
304304 } ) ;
305305 console . info ( { unified2 } ) ;
306306 await sleep ( 1000 ) ;
307- await enterAddress ( unified2 ) ;
307+ await enterAddress ( unified2 , { acceptCameraPermission : false } ) ;
308308 // should only allow spending from savings
309309 await elementById ( 'AssetButton-savings' ) . waitForDisplayed ( ) ;
310310 await sleep ( 500 ) ;
@@ -336,7 +336,7 @@ describe('@send - Send', () => {
336336 // // console.info(JSON.stringify(dec, null, 2));
337337
338338 // await sleep(1000);
339- // await enterAddress(unified3);
339+ // await enterAddress(unified3, { acceptCameraPermission: false } );
340340 // await elementById('AssetButton-savings').waitForDisplayed();
341341 // await tap('N1');
342342 // await multiTap('N0', 4);
@@ -360,7 +360,7 @@ describe('@send - Send', () => {
360360 const unified4 = encode ( onchainAddress , { lightning : invoice5 } ) ;
361361 console . info ( { unified4 } ) ;
362362 await sleep ( 1000 ) ;
363- await enterAddress ( unified4 ) ;
363+ await enterAddress ( unified4 , { acceptCameraPermission : false } ) ;
364364 // max amount (lightning)
365365 await expectText ( '6 000' , { strategy : 'contains' } ) ; // current balance 8k - 1k reserve balance
366366 await tap ( 'AssetButton-switch' ) ;
@@ -386,7 +386,7 @@ describe('@send - Send', () => {
386386 const unified5 = encode ( onchainAddress , { lightning : invoice6 } ) ;
387387 console . info ( { unified5 } ) ;
388388 await sleep ( 1000 ) ;
389- await enterAddress ( unified5 ) ;
389+ await enterAddress ( unified5 , { acceptCameraPermission : false } ) ;
390390 // max amount (lightning)
391391 await tap ( 'AvailableAmount' ) ;
392392 await tap ( 'ContinueAmount' ) ;
@@ -428,7 +428,7 @@ describe('@send - Send', () => {
428428 await doNavigationClose ( ) ;
429429
430430 await sleep ( 1000 ) ;
431- await enterAddress ( invoice7 ) ;
431+ await enterAddress ( invoice7 , { acceptCameraPermission : false } ) ;
432432 await elementById ( 'SendSuccess' ) . waitForDisplayed ( ) ;
433433 await sleep ( 500 ) ;
434434 await tap ( 'Close' ) ;
@@ -445,7 +445,7 @@ describe('@send - Send', () => {
445445 } ) ;
446446 console . info ( { unified7 } ) ;
447447 await sleep ( 1000 ) ;
448- await enterAddress ( unified7 ) ;
448+ await enterAddress ( unified7 , { acceptCameraPermission : false } ) ;
449449 await elementById ( 'SendSuccess' ) . waitForDisplayed ( ) ;
450450 await sleep ( 500 ) ;
451451 await tap ( 'Close' ) ;
@@ -471,7 +471,7 @@ describe('@send - Send', () => {
471471 const { paymentRequest : invoice9 } = await lnd . addInvoice ( { value : '10000' } ) ;
472472 console . info ( { invoice9 } ) ;
473473 await sleep ( 1000 ) ;
474- await enterAddress ( invoice9 ) ;
474+ await enterAddress ( invoice9 , { acceptCameraPermission : false } ) ;
475475 await elementById ( 'ReviewAmount' ) . waitForDisplayed ( ) ;
476476 await swipeFullScreen ( 'down' ) ;
477477 } ) ;
0 commit comments