diff --git a/test/specs/send.e2e.ts b/test/specs/send.e2e.ts index 82017a7..1739b85 100644 --- a/test/specs/send.e2e.ts +++ b/test/specs/send.e2e.ts @@ -162,11 +162,18 @@ describe('@send - Send', () => { await typeAddressAndVerifyContinue({ address: unified1 }); } - // verify amount is set correctly + // a payable amount opens the review screen directly await tap('AddressContinue'); - await verifyAmountToSend(10_000); - await elementById('ContinueAmount').waitForEnabled(); + const unified1ReviewAmt = await elementByIdWithin('ReviewAmount-primary', 'MoneyText'); + await unified1ReviewAmt.waitForDisplayed(); + await expect(unified1ReviewAmt).toHaveText('10 000'); await tap('NavigationBack'); + if (driver.isAndroid) { + // Android replaces the review screen with Amount, so the amount can still be edited + await verifyAmountToSend(10_000); + await elementById('ContinueAmount').waitForEnabled(); + await tap('NavigationBack'); + } // check validation for unified invoice when balance is too low (200_000 sats) const unified2 = 'bitcoin:bcrt1q07x3wl76zdxvdsz3qzzkvxrjg3n6t4tz2vnsx8?amount=0.002'; @@ -360,10 +367,7 @@ describe('@send - Send', () => { console.info({ unified2 }); await sleep(1000); await enterAddress(unified2, { acceptCameraPermission: false }); - // should only allow spending from savings - await elementById('AssetButton-savings').waitForDisplayed(); - await sleep(500); - await tap('ContinueAmount'); + // lightning cannot pay it, so the onchain amount opens the review screen directly await reviewAmt.waitForDisplayed(); await expect(reviewAmt).toHaveText('20 000'); await dragOnElement('GRAB', 'right', 0.95);