Add gateway client integration, smoke, and E2E tests #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/gateway-integration-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds three test layers for the hero ledger gateway client integration (#10):
crates/gateway-tests/): 23 wiremock-based tests covering all GatewayClient methods — credentials, accounts, tokens (two-step write flow), marketplace, and error handlingscripts/gateway-smoke-test.sh): curl-based connectivity tests against the live gatewaye2e/): Playwright tests for app loading, wallet connect, vault flow, and RefCell regressionCloses #10
Changes
crates/gateway-tests/scripts/gateway-smoke-test.she2e/crates/frontend/src/config.rshttp://ledger.dev.projectmycelium.com:9090Cargo.tomlMakefileSHELL := /bin/bash; auto-source env vars.forgejo/workflows/test.ymlTest Status — All Green
make check— 0 warningsmake lint(clippy) — cleancargo fmt --check— cleanmake test— 56/56 tests pass (33 existing + 23 gateway)make test-gateway— 23/23 wiremock integration tests passmake gateway-smoke-test— 7/7 pass againsthttp://ledger.dev.projectmycelium.com:9090make test-e2e— 6/6 Playwright E2E tests pass (requiresdx serveon :8080)Env Var Setup
E2E and gateway smoke tests use
source ~/hero/cfg/env/*(auto-sourced by Makefile).TFGRID_MNEMONIC_DEVNET— devnet mnemonic for wallet connect / vault E2E testsTFGRID_MNEMONIC_DEVNETconfigured for CIThe generic button:has-text("Login") selector was matching the navbar Login button behind the modal overlay instead of the modal's submit button. All 6 E2E tests now pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>WIP: Add gateway client integration, smoke, and E2E teststo Add gateway client integration, smoke, and E2E tests