E2E Playwright: hybrid swap with book leg on LocalTerra #79

Closed
opened 2026-04-09 03:24:10 +00:00 by PlasticDigits · 8 comments
PlasticDigits commented 2026-04-09 03:24:10 +00:00 (Migrated from gitlab.com)

Evidence

  • e2e/swap.spec.ts — no hybrid fill assertion today

Dependencies

  • May need script to seed resting limit

Acceptance criteria

  • Playwright asserts hybrid outcome (events, balances, or UI)

Epic

#59

## Evidence - `e2e/swap.spec.ts` — no hybrid fill assertion today ## Dependencies - May need script to seed resting limit ## Acceptance criteria - [ ] Playwright asserts hybrid outcome (events, balances, or UI) ## Epic #59
PlasticDigits commented 2026-04-09 03:24:11 +00:00 (Migrated from gitlab.com)

marked this issue as related to #59

marked this issue as related to #59
PlasticDigits commented 2026-04-09 03:24:12 +00:00 (Migrated from gitlab.com)

marked this issue as related to #61

marked this issue as related to #61
PlasticDigits commented 2026-04-13 04:48:33 +00:00 (Migrated from gitlab.com)

E2E: New frontend-dapp/e2e/hybrid-swap.spec.ts (with skipIfLcdUnreachable) walks the swap UI: enable hybrid book leg, enter amounts, and assert the disclosure role=alert plus the documentation link. Complements Vitest. @brouie please run Playwright against LocalTerra when available.

**E2E:** New `frontend-dapp/e2e/hybrid-swap.spec.ts` (with `skipIfLcdUnreachable`) walks the swap UI: enable hybrid book leg, enter amounts, and assert the disclosure `role=alert` plus the documentation link. Complements Vitest. @brouie please run Playwright against LocalTerra when available.
PlasticDigits commented 2026-04-13 04:48:48 +00:00 (Migrated from gitlab.com)

mentioned in issue #59

mentioned in issue #59
Brouie commented 2026-04-20 06:43:36 +00:00 (Migrated from gitlab.com)

@PlasticDigits Code-level verification on current main: frontend-dapp/e2e/hybrid-swap.spec.ts present with 2 tests:

  1. 'shows hybrid book disclosure and documentation link when book leg is set' (line 14) -- walks the swap UI, enables hybrid book leg, asserts the disclosure role=alert plus the documentation link (complements the Vitest coverage verified on #76).
  2. 'hybrid swap emits wasm limit_order_fill (LCD)' (line 60) -- asserts hybrid outcome via on-chain wasm event.

Both tests use skipIfLcdUnreachable and skipIfNoTxAlert helpers for clean skips when environment isn't ready.

Holding close until I run npm run test:e2e with LocalTerra + seeded resting limit + deployed contracts. DEX stack (postgres + localterra) is up on the QA server; still need contract deploys + funded wallet setup before Playwright. Will batch with #71 and #72 when ready.

@PlasticDigits Code-level verification on current main: frontend-dapp/e2e/hybrid-swap.spec.ts present with 2 tests: 1. **'shows hybrid book disclosure and documentation link when book leg is set'** (line 14) -- walks the swap UI, enables hybrid book leg, asserts the disclosure role=alert plus the documentation link (complements the Vitest coverage verified on #76). 2. **'hybrid swap emits wasm limit_order_fill (LCD)'** (line 60) -- asserts hybrid outcome via on-chain wasm event. Both tests use skipIfLcdUnreachable and skipIfNoTxAlert helpers for clean skips when environment isn't ready. Holding close until I run npm run test:e2e with LocalTerra + seeded resting limit + deployed contracts. DEX stack (postgres + localterra) is up on the QA server; still need contract deploys + funded wallet setup before Playwright. Will batch with #71 and #72 when ready.
Brouie commented 2026-04-20 06:53:58 +00:00 (Migrated from gitlab.com)

mentioned in issue #86

mentioned in issue #86
Brouie commented 2026-04-21 07:22:14 +00:00 (Migrated from gitlab.com)

@PlasticDigits verified on 9032f42.

Same stack as #72 (local DEX stack on QA server, frontend on laptop).

e2e/hybrid-swap.spec.ts: 2/2 passed (18s).

@PlasticDigits verified on 9032f42. Same stack as #72 (local DEX stack on QA server, frontend on laptop). `e2e/hybrid-swap.spec.ts`: 2/2 passed (18s).
Brouie (Migrated from gitlab.com) closed this issue 2026-04-21 07:22:41 +00:00
PlasticDigits commented 2026-05-26 07:59:26 +00:00 (Migrated from gitlab.com)

mentioned in issue #193

mentioned in issue #193
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic#79
No description provided.