From 014cf755cc330529c5fa1dedb321b27750b150b1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 7 Oct 2026 09:08:57 -0700 Subject: ark ui-test: port the browser e2e to the current app The old test spawned ~/halwallet's dev server and drove its long-gone UI (receive-mode select, Settings 'Refresh / consolidate'). It now builds this repo's app bundle and drives it against the regtest stack: set up Spending, receive over Ark from alice, send back from the Send form, fund Savings on-chain and move it into Spending (board), reload. Only the page and the local backends are reachable. aliceReady uses 'bark maintain' so actions a killed run left half-done get resumed instead of holding coins locked. Co-Authored-By: Claude Opus 5.5 --- tools/ark/alice.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/ark/alice.js') diff --git a/tools/ark/alice.js b/tools/ark/alice.js index 9c33661..b270edd 100644 --- a/tools/ark/alice.js +++ b/tools/ark/alice.js @@ -27,7 +27,10 @@ const expiredCoins = () => { export async function aliceReady() { if (expiredCoins().length) { console.log(' … refreshing alice\'s expired coins first'); - sh(`${ALICE} -q refresh --all >/dev/null`); + // maintain = refresh what's expiring + resume any action a killed run left + // half-done (those hold their coins locked); errors surface below as a + // balance that never comes back + try { sh(`${ALICE} -q maintain >/dev/null 2>&1`); } catch {} // the round's output turns spendable once its funding tx confirms and the // indexer has seen it — keep mining until bark agrees for (let i = 0; i < 20 && (expiredCoins().length || !aliceBalance()); i++) { mine(1); await sleep(1500); } -- cgit v1.2.3