diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:01:02 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:01:02 -0800 |
| commit | db59579a2efa8416f78c855faa7d7e62048447e5 (patch) | |
| tree | 28444081de0120f21f7596198937bdd52fe43495 /test/e2e/custodial-bitcoin-send.spec.ts | |
| parent | 7eec7ac0b322b510b4e2cedef62422b6043d6405 (diff) | |
| download | coinos-ui-db59579a2efa8416f78c855faa7d7e62048447e5.tar.gz coinos-ui-db59579a2efa8416f78c855faa7d7e62048447e5.zip | |
lint
Diffstat (limited to 'test/e2e/custodial-bitcoin-send.spec.ts')
| -rw-r--r-- | test/e2e/custodial-bitcoin-send.spec.ts | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/test/e2e/custodial-bitcoin-send.spec.ts b/test/e2e/custodial-bitcoin-send.spec.ts index 8b4c8be9..c8543dac 100644 --- a/test/e2e/custodial-bitcoin-send.spec.ts +++ b/test/e2e/custodial-bitcoin-send.spec.ts @@ -21,8 +21,10 @@ test("custodial-to-custodial via bitcoin address sends internally and notifies r alicePassword, ); - const { invoiceId, address: bitcoinAddress } = - await createBitcoinInvoiceViaUI(alicePage, aliceUsername); + const { invoiceId, address: bitcoinAddress } = await createBitcoinInvoiceViaUI( + alicePage, + aliceUsername, + ); console.log(`[e2e] Alice custodial bitcoin address: ${bitcoinAddress}`); console.log(`[e2e] Alice invoice ID: ${invoiceId}`); @@ -43,14 +45,8 @@ test("custodial-to-custodial via bitcoin address sends internally and notifies r console.log(`[e2e] Bob navigated to: ${bobUrl}`); // Verify it went to /send/invoice/ (internal send via original invoice) - expect( - bobUrl, - `Expected /send/invoice/ URL but got: ${bobUrl}`, - ).toContain("/send/invoice/"); - expect( - bobUrl, - `Should NOT redirect to /pay/ but got: ${bobUrl}`, - ).not.toContain("/pay/"); + expect(bobUrl, `Expected /send/invoice/ URL but got: ${bobUrl}`).toContain("/send/invoice/"); + expect(bobUrl, `Should NOT redirect to /pay/ but got: ${bobUrl}`).not.toContain("/pay/"); // Bob should see the Numpad (no amount set on the invoice) const amountInput = bobPage.locator('[aria-label="Amount input"]'); @@ -89,7 +85,9 @@ test("custodial-to-custodial via bitcoin address sends internally and notifies r // Verify Alice sees the payment success page const successText = await alicePage.locator("h1").first().innerText({ timeout: 5_000 }); expect( - successText.toLowerCase().includes("payment") || successText.toLowerCase().includes("success") || successText.toLowerCase().includes("detected"), + successText.toLowerCase().includes("payment") || + successText.toLowerCase().includes("success") || + successText.toLowerCase().includes("detected"), `Expected payment success text, got: ${successText}`, ).toBeTruthy(); |
