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-receive-from-server-wallet.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-receive-from-server-wallet.spec.ts')
| -rw-r--r-- | test/e2e/ark-receive-from-server-wallet.spec.ts | 37 |
1 files changed, 0 insertions, 37 deletions
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})`, - ); -}); |
