From 0167d3d9348d9e2cb1f85cd499ef346f6e85dad1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 1 Mar 2026 12:42:16 -0800 Subject: 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 --- test/e2e/ark-send-custodial.spec.ts | 64 ------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 test/e2e/ark-send-custodial.spec.ts (limited to 'test/e2e/ark-send-custodial.spec.ts') 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(); -}); -- cgit v1.2.3