diff options
| author | Adam Soltys <[email protected]> | 2026-03-01 12:42:16 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-01 12:42:16 -0800 |
| commit | 0167d3d9348d9e2cb1f85cd499ef346f6e85dad1 (patch) | |
| tree | 8c3048fdf0f4209618ff7a4cb2be612856d3780b /test/e2e/ark-send-custodial.spec.ts | |
| parent | 6ac0d3da9668149cb2c3b6322fa431a2f7f508a9 (diff) | |
| download | coinos-ui-0167d3d9348d9e2cb1f85cd499ef346f6e85dad1.tar.gz coinos-ui-0167d3d9348d9e2cb1f85cd499ef346f6e85dad1.zip | |
Fix ark e2e tests: consolidate into serial suite, fix VTXO contention
- Skip settle/refresh during tests via ark:skipSettle flag to prevent
VTXOs from being registered in never-completing ark rounds
- Add 3s timeout on syncPromise wait in sendArk to prevent hangs
- Fix ensureArkAccount to wait for autoUnlockArk and create account
via API with correct address (Schnorr signatures are non-deterministic)
- Consolidate all 6 ark tests into single serial file to prevent
server wallet contention
- Split playwright config into parallel (non-ark) and serial (ark) projects
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Diffstat (limited to 'test/e2e/ark-send-custodial.spec.ts')
| -rw-r--r-- | test/e2e/ark-send-custodial.spec.ts | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/test/e2e/ark-send-custodial.spec.ts b/test/e2e/ark-send-custodial.spec.ts deleted file mode 100644 index 5dbcbf90..00000000 --- a/test/e2e/ark-send-custodial.spec.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { expect, test } from "@playwright/test"; -import { - aliceUsername, - alicePassword, - bobUsername, - bobPassword, - testSecret, - arkWalletPassword, - loginNewContext, - ensureArkAccount, - createArkInvoiceViaUI, - fillNumpadAmount, - waitForSendComplete, - waitForDashboard, -} from "./helpers"; - -test("custodial sends to external ark address", async ({ browser }) => { - test.setTimeout(120_000); - test.skip(!testSecret, "E2E_TEST_SECRET is required for ark tests"); - - // --- Alice: log in, ensure ark account, get her ark vault address --- - const { context: aliceContext, page: alicePage } = await loginNewContext( - browser, - aliceUsername, - alicePassword, - ); - - await ensureArkAccount(alicePage, arkWalletPassword); - await alicePage.goto(`/${aliceUsername}`); - await waitForDashboard(alicePage); - - const { address: arkAddress } = await createArkInvoiceViaUI(alicePage, arkWalletPassword); - console.log(`[e2e] Alice ark address: ${arkAddress}`); - - await aliceContext.close(); - - // --- Bob: paste ark address and send from custodial --- - const { context: bobContext, page: bobPage } = await loginNewContext( - browser, - bobUsername, - bobPassword, - ); - - // Navigate directly to the ark send page (pasteAndSend can be flaky with tark addresses) - await bobPage.goto(`/send/ark/${arkAddress}`); - await bobPage.waitForLoadState("domcontentloaded"); - console.log(`[e2e] Bob navigated to: ${bobPage.url()}`); - - // Enter amount on numpad - await fillNumpadAmount(bobPage, 100); - - // Now on the confirmation page with Send button - await bobPage.waitForURL(/\/send\/ark\/[^/]+\/\d+/, { timeout: 10_000 }); - console.log(`[e2e] Bob on ark send confirmation: ${bobPage.url()}`); - - const sendButton = bobPage.locator('button[type="submit"]'); - await expect(sendButton).toBeVisible({ timeout: 5_000 }); - await sendButton.click(); - - await waitForSendComplete(bobPage, 60_000); - console.log(`[e2e] Bob ark payment sent: ${bobPage.url()}`); - - await bobContext.close(); -}); |
