Skip to content

Commit ffd4a83

Browse files
committed
remove try catch on enterAddressViaScanPrompt
1 parent f51b2ce commit ffd4a83

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

test/specs/lnurl.e2e.ts

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)