From a5faa64ba470f935ea3e7932feece3cd9fbadb90 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 26 Feb 2026 13:36:28 -0800 Subject: ark tests --- test/e2e/ark-send-custodial.spec.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (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 index 5806ca72..ab5d2141 100644 --- a/test/e2e/ark-send-custodial.spec.ts +++ b/test/e2e/ark-send-custodial.spec.ts @@ -5,8 +5,9 @@ import { bobUsername, bobPassword, testSecret, - apiBaseUrl, + arkWalletPassword, loginNewContext, + ensureArkAccount, createArkInvoiceViaUI, pasteAndSend, fillNumpadAmount, @@ -17,14 +18,18 @@ 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 and get her ark vault address --- + // --- Alice: log in, ensure ark account, get her ark vault address --- const { context: aliceContext, page: alicePage } = await loginNewContext( browser, aliceUsername, alicePassword, ); - const { address: arkAddress } = await createArkInvoiceViaUI(alicePage, alicePassword); + await ensureArkAccount(alicePage, arkWalletPassword); + await alicePage.goto(`/${aliceUsername}`); + await alicePage.waitForLoadState("networkidle"); + + const { address: arkAddress } = await createArkInvoiceViaUI(alicePage, arkWalletPassword); console.log(`[e2e] Alice ark address: ${arkAddress}`); await aliceContext.close(); @@ -45,7 +50,7 @@ test("custodial sends to external ark address", async ({ browser }) => { expect(bobUrl).toContain("/send/ark/"); // Enter amount on numpad - await fillNumpadAmount(bobPage, 1000); + await fillNumpadAmount(bobPage, 100); // Now on the confirmation page with Send button await bobPage.waitForURL(/\/send\/ark\/[^/]+\/\d+/, { timeout: 10_000 }); -- cgit v1.2.3