From 2042722a9f32f55f24aae250ce9d7cae6539d8aa Mon Sep 17 00:00:00 2001 From: Ovi Trif Date: Thu, 12 Nov 2026 06:56:18 +0100 Subject: [PATCH] fix: restore waits past the move to spark intro --- test/helpers/actions.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/helpers/actions.ts b/test/helpers/actions.ts index 93aa3495..ffaaea35 100644 --- a/test/helpers/actions.ts +++ b/test/helpers/actions.ts @@ -1054,7 +1054,15 @@ export async function restoreWallet( } } - await elementById('TotalBalance-primary').waitForDisplayed({ timeout: 90_000 }); + // A restored wallet whose channels hold a balance gets the Move to Spark intro once Spark connects, over home. + await browser.waitUntil( + async () => + (await isTestIdDisplayed('TotalBalance-primary')) || + (await isTestIdDisplayed('MoveToSparkIntroLater')), + { timeout: 90_000, timeoutMsg: 'Wallet home did not show after restore' } + ); + await dismissMoveToSparkIntroIfShown(); + await elementById('TotalBalance-primary').waitForDisplayed({ timeout: 30_000 }); } type addressType = 'bitcoin' | 'lightning';