diff options
| author | Adam Soltys <[email protected]> | 2026-10-02 14:57:00 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-02 14:57:00 -0700 |
| commit | 875d7df2c1c83ecfa85fe1c4546be6b568cc2e25 (patch) | |
| tree | d5f8e94fe336c04afe298114d0b795695fb8a946 /tools/ark | |
| parent | ef40c82b88ac8d1fe58d270c174b0b60f130f0a0 (diff) | |
| download | coinosv3-875d7df2c1c83ecfa85fe1c4546be6b568cc2e25.tar.gz coinosv3-875d7df2c1c83ecfa85fe1c4546be6b568cc2e25.zip | |
Spending settings: Move to Savings opens its form again
showSend flipped the wallet's tab to Send but left the screen where it
was; from the Spending settings page (where the co-operative exit lives
now) the form opened out of sight and the button seemed to do nothing.
Opening Send now always means the wallet screen.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dmcrt9KyNDKVWFKnb8BREo
Diffstat (limited to 'tools/ark')
| -rw-r--r-- | tools/ark/cooperative-exit-ui-test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/ark/cooperative-exit-ui-test.js b/tools/ark/cooperative-exit-ui-test.js index 831ed3b..72e4705 100644 --- a/tools/ark/cooperative-exit-ui-test.js +++ b/tools/ark/cooperative-exit-ui-test.js @@ -91,6 +91,15 @@ try { assert.match(st.text, /Security/); assert.match(st.text, /Lock wallet/); assert.match(st.text, /Recovery phrase/); await page.screenshot({ path: '/tmp/gear-settings.png', fullPage: true }); console.log('✓ The Spending gear opens its settings: coins, the exit cost (gone from home), lock and recovery phrase'); + // its co-operative exit opens the move form on the wallet (it used to flip + // the Send tab behind the settings page and seem to do nothing) + await coopButton(); + await page.waitForSelector('input.mono-input', { timeout: 3000 }); + assert.equal(await page.evaluate(() => coopApp.ui.screen), 'wallet'); + assert.equal(await page.$eval('input.mono-input', (e) => e.value), await page.evaluate(() => coopApp.wallet.freshReceive().address)); + assert.deepEqual(await page.evaluate(() => coopCalls), [], 'opening the form never starts an exit'); + console.log('✓ From the Spending settings, the co-operative exit opens its form, prefilled to Savings'); + await page.evaluate(() => { coopApp.ui.arkOffboardSend = null; coopApp.ui.tab = 'receive'; coopApp.render(); }); await page.evaluate(() => { window.forceArkReady = false; coopApp.wallet.saveFeatureState('arkDepth', null); coopApp.ui.screen = 'wallet'; coopApp.render(); }); await manage(); |
