@@ -219,15 +219,9 @@ describe('@lnurl - LNURL', () => {
219219 } ) ;
220220 console . log ( 'payRequest2' , payRequest2 ) ;
221221
222- try {
223- await enterAddressViaScanPrompt ( payRequest2 . encoded , { acceptCameraPermission : false } ) ;
224- await sleep ( 2000 ) ;
225- await elementById ( 'ReviewAmount-primary' ) . waitForDisplayed ( { timeout : 5000 } ) ;
226- } catch {
227- console . warn ( 'ReviewAmount not found, trying again' ) ;
228- await enterAddressViaScanPrompt ( payRequest2 . encoded , { acceptCameraPermission : false } ) ;
229- await sleep ( 2000 ) ;
230- }
222+ await enterAddressViaScanPrompt ( payRequest2 . encoded , { acceptCameraPermission : false } ) ;
223+ await sleep ( 2000 ) ;
224+ await elementById ( 'ReviewAmount-primary' ) . waitForDisplayed ( { timeout : 5000 } ) ;
231225 // Comment input should not be visible
232226 await elementById ( 'CommentInput' ) . waitForDisplayed ( { reverse : true } ) ;
233227 const reviewAmt = await elementByIdWithin ( 'ReviewAmount-primary' , 'MoneyText' ) ;
@@ -282,18 +276,11 @@ describe('@lnurl - LNURL', () => {
282276 } ) ;
283277 console . log ( 'withdrawRequest1' , withdrawRequest1 ) ;
284278
285- try {
286- await enterAddressViaScanPrompt ( withdrawRequest1 . encoded , {
287- acceptCameraPermission : false ,
288- } ) ;
289- await sleep ( 2000 ) ;
290- await elementById ( 'SendNumberField' ) . waitForDisplayed ( { timeout : 5000 } ) ;
291- } catch {
292- console . warn ( 'SendNumberField not found, trying again' ) ;
293- await enterAddressViaScanPrompt ( withdrawRequest1 . encoded , {
294- acceptCameraPermission : false ,
295- } ) ;
296- }
279+ await enterAddressViaScanPrompt ( withdrawRequest1 . encoded , {
280+ acceptCameraPermission : false ,
281+ } ) ;
282+ await sleep ( 2000 ) ;
283+ await elementById ( 'SendNumberField' ) . waitForDisplayed ( { timeout : 5000 } ) ;
297284 await expectTextWithin ( 'SendNumberField' , '102' ) ;
298285 await tap ( 'ContinueAmount' ) ;
299286 await tap ( 'WithdrawConfirmButton' ) ;
0 commit comments