From 8e6d92d40ba30c929d94b8acb85c94e09ca216f1 Mon Sep 17 00:00:00 2001 From: Ovi Trif Date: Fri, 4 Dec 2026 23:01:49 +0100 Subject: [PATCH 1/2] fix: size ios quickpay invoices from the wallet quote @send_2 on iOS still sent a fixed 10,000-sat invoice that should exceed the $5 QuickPay limit. At about $4.98 it no longer does, so QuickPay pays it and the test times out waiting for the review screen. iOS now uses the same quote-based amounts as Android. Verified: tsc, eslint and prettier on the spec --- test/specs/send.e2e.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/specs/send.e2e.ts b/test/specs/send.e2e.ts index 8dc3d6f..944bbe2 100644 --- a/test/specs/send.e2e.ts +++ b/test/specs/send.e2e.ts @@ -499,8 +499,6 @@ describe('@send - Send', () => { }); async function quickPayInvoiceAmounts(balanceText: string) { - if (driver.isIOS) return { smallSats: 1_000, aboveCapSats: 10_000 }; - const usd = await displayedUsd('TotalBalance-secondary'); const satsPerDollar = Number(balanceText.replace(/\s/g, '')) / usd; if (!Number.isFinite(satsPerDollar) || satsPerDollar < 1) { From 388e11c84fcf08f03e1ef33738d7386aa60d9f1f Mon Sep 17 00:00:00 2001 From: Ovi Trif Date: Fri, 4 Dec 2026 23:07:31 +0100 Subject: [PATCH 2/2] test: check the review amount on ios too The above-limit invoice now has the same quote-based size on both platforms, so both assert the review screen shows it and its USD value is above $5. Verified: tsc, eslint and prettier on the spec --- test/specs/send.e2e.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/specs/send.e2e.ts b/test/specs/send.e2e.ts index 944bbe2..90b04eb 100644 --- a/test/specs/send.e2e.ts +++ b/test/specs/send.e2e.ts @@ -393,10 +393,8 @@ describe('@send - Send', () => { await enterGateAddress(invoice9, { acceptCameraPermission: false }); await elementById('ReviewAmount').waitForDisplayed(); - if (driver.isAndroid) { - await expect(reviewAmt).toHaveText(formatSats(aboveCapSats)); - expect(await displayedUsd('ReviewAmount-secondary')).toBeGreaterThan(5); - } + await expect(reviewAmt).toHaveText(formatSats(aboveCapSats)); + expect(await displayedUsd('ReviewAmount-secondary')).toBeGreaterThan(5); await swipeFullScreen('down'); // sanity check activities displayed