@@ -255,7 +255,7 @@ describe('@lnurl - LNURL', () => {
255255 } ) ;
256256 console . log ( 'payRequest3' , payRequest3 ) ;
257257
258- await enterAddress ( payRequest3 . encoded ) ;
258+ await enterAddress ( payRequest3 . encoded , { acceptCameraPermission : false } ) ;
259259 await expectTextWithin ( 'SendNumberField' , minSendableSats ) ;
260260 await elementById ( 'ContinueAmount' ) . waitForDisplayed ( ) ;
261261 await tap ( 'ContinueAmount' ) ;
@@ -319,7 +319,7 @@ describe('@lnurl - LNURL', () => {
319319
320320 // TODO: after https://github.com/synonymdev/bitkit-android/issues/418 is resolved
321321 // we should test the scan flow here
322- await enterAddress ( withdrawRequest2 . encoded ) ;
322+ await enterAddress ( withdrawRequest2 . encoded , { acceptCameraPermission : false } ) ;
323323 const reviewAmtWithdraw = await elementByIdWithin ( 'WithdrawAmount-primary' , 'MoneyText' ) ;
324324 await expect ( reviewAmtWithdraw ) . toHaveText ( '303' ) ;
325325 await tap ( 'WithdrawConfirmButton' ) ;
@@ -340,10 +340,10 @@ describe('@lnurl - LNURL', () => {
340340 // lnurl-auth
341341 const loginRequest1 = await lnurlServer . generateNewUrl ( 'login' ) ;
342342 console . log ( 'loginRequest1' , loginRequest1 ) ;
343+ const loginEvent = new Promise < void > ( ( resolve ) => lnurlServer . once ( 'login' , resolve ) ) ;
343344 await enterAddressViaScanPrompt ( loginRequest1 . encoded , { acceptCameraPermission : false } ) ;
344345 await tap ( 'continue_button' ) ;
345346 await expectText ( 'Signed In' ) ;
346- const loginEvent = new Promise < void > ( ( resolve ) => lnurlServer . once ( 'login' , resolve ) ) ;
347347 await loginEvent ;
348348 }
349349 ) ;
0 commit comments