aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/ark-send-custodial.spec.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-28 22:06:27 -0800
committerAdam Soltys <[email protected]>2026-02-28 22:06:27 -0800
commit6ca9170a25b253483e7ce15767b7daae67c1334f (patch)
tree38be88205312e504630dc84c5ab0223a4f7cff6a /test/e2e/ark-send-custodial.spec.ts
parent36ae7b0cfc66aa614287f96ac2be85ff183130a2 (diff)
downloadcoinos-ui-6ca9170a25b253483e7ce15767b7daae67c1334f.tar.gz
coinos-ui-6ca9170a25b253483e7ce15767b7daae67c1334f.zip
ark wait for send
Diffstat (limited to 'test/e2e/ark-send-custodial.spec.ts')
-rw-r--r--test/e2e/ark-send-custodial.spec.ts19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/e2e/ark-send-custodial.spec.ts b/test/e2e/ark-send-custodial.spec.ts
index ab5d2141..5dbcbf90 100644
--- a/test/e2e/ark-send-custodial.spec.ts
+++ b/test/e2e/ark-send-custodial.spec.ts
@@ -9,9 +9,9 @@ import {
loginNewContext,
ensureArkAccount,
createArkInvoiceViaUI,
- pasteAndSend,
fillNumpadAmount,
- waitForSentRedirect,
+ waitForSendComplete,
+ waitForDashboard,
} from "./helpers";
test("custodial sends to external ark address", async ({ browser }) => {
@@ -27,7 +27,7 @@ test("custodial sends to external ark address", async ({ browser }) => {
await ensureArkAccount(alicePage, arkWalletPassword);
await alicePage.goto(`/${aliceUsername}`);
- await alicePage.waitForLoadState("networkidle");
+ await waitForDashboard(alicePage);
const { address: arkAddress } = await createArkInvoiceViaUI(alicePage, arkWalletPassword);
console.log(`[e2e] Alice ark address: ${arkAddress}`);
@@ -41,13 +41,10 @@ test("custodial sends to external ark address", async ({ browser }) => {
bobPassword,
);
- await pasteAndSend(bobPage, arkAddress);
-
- const bobUrl = bobPage.url();
- console.log(`[e2e] Bob navigated to: ${bobUrl}`);
-
- // Should route to /send/ark/{address}
- expect(bobUrl).toContain("/send/ark/");
+ // 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);
@@ -60,7 +57,7 @@ test("custodial sends to external ark address", async ({ browser }) => {
await expect(sendButton).toBeVisible({ timeout: 5_000 });
await sendButton.click();
- await waitForSentRedirect(bobPage, 60_000);
+ await waitForSendComplete(bobPage, 60_000);
console.log(`[e2e] Bob ark payment sent: ${bobPage.url()}`);
await bobContext.close();