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-receive-from-server-wallet.spec.ts | 37 ------------------------- 1 file changed, 37 deletions(-) delete mode 100644 test/e2e/ark-receive-from-server-wallet.spec.ts (limited to 'test/e2e/ark-receive-from-server-wallet.spec.ts') diff --git a/test/e2e/ark-receive-from-server-wallet.spec.ts b/test/e2e/ark-receive-from-server-wallet.spec.ts deleted file mode 100644 index 9606c084..00000000 --- a/test/e2e/ark-receive-from-server-wallet.spec.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { expect, test } from "@playwright/test"; -import { - bobUsername, - bobPassword, - testSecret, - arkWalletPassword, - login, - ensureArkAccount, - createArkInvoiceViaUI, - sendArkFromTestEndpoint, - waitForInvoicePaid, - waitForDashboard, -} from "./helpers"; - -test("bob receives 100 sats in ark vault after server wallet send", async ({ page }) => { - test.setTimeout(90_000); - test.skip(!testSecret, "E2E_TEST_SECRET is required for /test/ark/send"); - - await login(page, bobUsername, bobPassword); - await ensureArkAccount(page, arkWalletPassword); - - // Navigate back to dashboard after account setup - await page.goto(`/${bobUsername}`); - await waitForDashboard(page); - - const { invoiceId, address } = await createArkInvoiceViaUI(page, arkWalletPassword); - console.log(`[e2e] Bob ark address: ${address}, invoice: ${invoiceId}`); - - await sendArkFromTestEndpoint(page, address, 100, invoiceId); - - const status = await waitForInvoicePaid(page, invoiceId, 100); - expect(status.received).toBeGreaterThanOrEqual(100); - - console.log( - `[e2e] ark invoice ${invoiceId} funded with 100 sats (received=${status?.received || 0})`, - ); -}); -- cgit v1.2.3