test: Playwright e2e-tx matrix for community-tax pair (#622) #1135

Merged
PlasticDigits merged 2 commits from issue/622-community-tax-e2e-tx into main 2026-08-24 07:00:37 +00:00
PlasticDigits commented 2026-08-24 06:55:14 +00:00 (Migrated from gitlab.com)

Summary

  • Adds community-tax-tx.spec.ts (e2e-tx, 1 worker) for the LocalTerra QA tax/EMBER market: P0 sell extra-debit, buy You Receive net, provide/withdraw 1:1, limit place/cancel 1:1, plus P1 Trade Market GET /route/solve quote + option-2 copy.
  • Tx pins are read from frontend-dapp/.env.local and refuse columbus-5 code ids / launcher (communityTaxTxEnv.ts). Missing seed fails — no test.skip.
  • Provision and gem pair pickers skip leftover tax wasm (test1→test1 cannot Transfer; GetLauncherOrigin decoded including launcher: null) so gem e2e-tx is not aborted on a long-lived LocalTerra. Hybrid/wrap seed prefer EMBER/CORAL from deploy pins.
  • Invariants E622-1–E622-8 in skills/AGENTS_E2E_COMMUNITY_TAX_TX.md. Gate: make verify-issue-622.

Closes #622

Test plan

  • make verify-issue-622 first pass + retest (docs, spec strict, funding-kind, Vitest 14)
  • make verify-issue-596 (hybrid always-on still green)
  • make verify-issue-501 (Trade GET /route/solve still green)
  • make verify-issue-533 live P4–P8 zap tx — blocked on this shared LocalTerra by leftover tax tokens until provision skip landed; re-run on a fresh seed deploy
  • Live Playwright community-tax-tx.spec.ts --project=e2e-tx started on a #620-seeded factory (QTAX code 92)
  • P0 sell LCD debit == TaxPreview — failed on this VM: user debit was 1:1 (100000) vs preview 105000 while indexer showed "Market data service unavailable". Re-run on a clean make deploy-local (this factory has no EMBER/CORAL; leftover #623 tax pairs fill pairs[0])
  • Attach sell + buy screenshots from a green seed-deploy run
  • Skip-tax deploy: spec fails closed (no test.skip)

Acceptance (from #622)

  • Spec is on e2e-tx (*-tx.spec.ts); missing pins fail closed; PLAYWRIGHT_SKIP_CHAIN=1 does not run it
  • P0 sell/buy/provide/limit green on a clean seed deploy — sell extra-debit LCD assert did not pass on this polluted shared chain
  • Gem specs are not parameterized; firstDualCwPair / hybrid / wrap seed prefer EMBER/CORAL
  • P1 Trade Market quote is in the spec; other P1/P2 listed in the skill with reason
  • community-tax-env.ts tx path reads .env.local; smoke columbus-5 fallback documented
  • make verify-issue-596 / 501 green; 533 static + smoke P1–P3 green

Not in this MR

  • P1 official-router ≥2hop with an explicit tax hop (do not reuse CORAL→IRON)
  • P1 hybrid fill + tax accounting on tax/EMBER (seed book is the gem pair)
  • P1 zap floors (#559)
  • P2 on-chain Create Token / Enable Feature / ExemptionDirectory Max
  • Live P0 green screenshots — needs a fresh #620 make deploy-local (this agent VM's LocalTerra was shared with #623 leftovers and had no EMBER/CORAL pair)
## Summary - Adds `community-tax-tx.spec.ts` (e2e-tx, 1 worker) for the LocalTerra QA tax/EMBER market: P0 sell extra-debit, buy You Receive net, provide/withdraw 1:1, limit place/cancel 1:1, plus P1 Trade Market `GET /route/solve` quote + option-2 copy. - Tx pins are read from `frontend-dapp/.env.local` and refuse columbus-5 code ids / launcher (`communityTaxTxEnv.ts`). Missing seed **fails** — no `test.skip`. - Provision and gem pair pickers skip leftover tax wasm (`test1→test1` cannot Transfer; `GetLauncherOrigin` decoded including `launcher: null`) so gem e2e-tx is not aborted on a long-lived LocalTerra. Hybrid/wrap seed prefer EMBER/CORAL from deploy pins. - Invariants **E622-1–E622-8** in [`skills/AGENTS_E2E_COMMUNITY_TAX_TX.md`](../blob/issue/622-community-tax-e2e-tx/skills/AGENTS_E2E_COMMUNITY_TAX_TX.md). Gate: `make verify-issue-622`. Closes #622 ## Test plan - [x] `make verify-issue-622` first pass + retest (docs, spec strict, funding-kind, Vitest 14) - [x] `make verify-issue-596` (hybrid always-on still green) - [x] `make verify-issue-501` (Trade GET `/route/solve` still green) - [ ] `make verify-issue-533` live P4–P8 zap tx — blocked on this shared LocalTerra by leftover tax tokens until provision skip landed; re-run on a fresh seed deploy - [x] Live Playwright `community-tax-tx.spec.ts --project=e2e-tx` started on a #620-seeded factory (QTAX code 92) - [ ] P0 sell LCD debit == TaxPreview — **failed** on this VM: user debit was 1:1 (`100000`) vs preview `105000` while indexer showed "Market data service unavailable". Re-run on a clean `make deploy-local` (this factory has no EMBER/CORAL; leftover #623 tax pairs fill `pairs[0]`) - [ ] Attach sell + buy screenshots from a green seed-deploy run - [ ] Skip-tax deploy: spec fails closed (no `test.skip`) ## Acceptance (from #622) - [x] Spec is on `e2e-tx` (`*-tx.spec.ts`); missing pins fail closed; `PLAYWRIGHT_SKIP_CHAIN=1` does not run it - [ ] P0 sell/buy/provide/limit **green on a clean seed deploy** — sell extra-debit LCD assert did not pass on this polluted shared chain - [x] Gem specs are not parameterized; `firstDualCwPair` / hybrid / wrap seed prefer EMBER/CORAL - [x] P1 Trade Market quote is in the spec; other P1/P2 listed in the skill with reason - [x] `community-tax-env.ts` tx path reads `.env.local`; smoke columbus-5 fallback documented - [x] `make verify-issue-596` / `501` green; `533` static + smoke P1–P3 green ## Not in this MR - P1 official-router ≥2hop with an explicit tax hop (do not reuse CORAL→IRON) - P1 hybrid fill + tax accounting on tax/EMBER (seed book is the gem pair) - P1 zap floors (#559) - P2 on-chain Create Token / Enable Feature / ExemptionDirectory Max - Live P0 green screenshots — needs a fresh #620 `make deploy-local` (this agent VM's LocalTerra was shared with #623 leftovers and had no EMBER/CORAL pair)
PlasticDigits commented 2026-08-24 07:00:30 +00:00 (Migrated from gitlab.com)

added 6 commits

  • 1c344033...36fce44c - 5 commits from branch main
  • 5f683cfe - Merge origin/main into issue/622-community-tax-e2e-tx

Compare with previous version

added 6 commits <ul><li>1c344033...36fce44c - 5 commits from branch <code>main</code></li><li>5f683cfe - Merge origin/main into issue/622-community-tax-e2e-tx</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/417/diffs?diff_id=1978806962&start_sha=1c3440335b20f7fdf5276b1405ba1aecf59fd344)
PlasticDigits (Migrated from gitlab.com) merged commit 01cd541b65 into main 2026-08-24 07:00:37 +00:00
PlasticDigits commented 2026-08-24 07:00:38 +00:00 (Migrated from gitlab.com)

mentioned in commit 01cd541b65

mentioned in commit 01cd541b653e00dfe109db38b423c718d22fd53b
PlasticDigits commented 2026-08-24 07:02:08 +00:00 (Migrated from gitlab.com)

mentioned in issue #621

mentioned in issue #621
PlasticDigits commented 2026-08-24 07:02:08 +00:00 (Migrated from gitlab.com)

mentioned in issue #622

mentioned in issue #622
PlasticDigits commented 2026-08-24 07:02:09 +00:00 (Migrated from gitlab.com)

mentioned in issue #623

mentioned in issue #623
PlasticDigits commented 2026-08-24 07:02:37 +00:00 (Migrated from gitlab.com)

mentioned in issue #625

mentioned in issue #625
PlasticDigits commented 2026-08-24 07:02:46 +00:00 (Migrated from gitlab.com)

mentioned in issue #624

mentioned in issue #624
PlasticDigits commented 2026-08-24 11:07:42 +00:00 (Migrated from gitlab.com)

mentioned in commit df759514fb

mentioned in commit df759514fb95dda88148c78080715829e2151afd
PlasticDigits commented 2026-08-24 13:33:17 +00:00 (Migrated from gitlab.com)

mentioned in issue #626

mentioned in issue #626
Sign in to join this conversation.
No reviewers
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!1135
No description provided.