Skip to content

test(e2e): run the suites against the truapi test host - #435

Open
decrypto21 wants to merge 7 commits into
mainfrom
migrate/truapi-test-host
Open

decrypto21 wants to merge 7 commits into
mainfrom
migrate/truapi-test-host

Conversation

@decrypto21

@decrypto21 decrypto21 commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

The e2e suites now use @parity/truapi-host/testing, which runs the real truapi-server core and mocks the host seam around it. Only the fixture changes; the assertions stay where they could.

@parity/truapi and @parity/truapi-host ship as a matched pair, so the catalog carries 0.21 of both. No package source changes, just fixtures and specs.

Product accounts are derived

A product account comes from (session root, product id) rather than being mapped to one, so productAccounts is gone. Three suites submit real extrinsics and need a balance on the account the host derives:

suite account
tx-demo 5EEoZCuLSwtnbaJPEubsr6smMWsAoNW1Hv5omUGgQyM5zYEU
contracts-demo 5Dkio4JAknT6B2T23UggdjwTeprFZZd8ijqQdzejuVcC5Scy
statement-store-demo 16kqhX4WuciTyM6VFT4XtEen2ec4vfoPj5ZbGGe5d6iAqxRk

All three are funded on Paseo Asset Hub. Derivation is deterministic, so this holds for every clone until a suite changes its account or product id. e2e-support/check-product-accounts.mjs reports the balances and exits non-zero if one runs short, which is worth running first: an empty account surfaces as Invalid.Payment or Statement submission rejected: {}, neither of which points at the balance.

Specs that changed

  • signer-demo/switch-account: without a pinned account, the address follows the switch.
  • signer-demo/product-account: asserts what this host version serves.
  • signer-demo/onconnect: accepts either allocation outcome until the fixture can withhold a resource.
  • statement-store-demo: the People chain is declared through networks with a -people id, so the host can serve the store in-page.

Skipped

Two statement-store-demo subscription tests inject a statement with chosen topics and data; this host version takes encoded wire bytes, so they wait for the structured form. cloud-storage-demo and contracts-demo/query were already skipped.

49 passed, 0 failed, 15 skipped across the nine demos, in one run.

@socket-security

socket-security Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​parity/​truapi-host@​0.24.08610010099100

View full report

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

📦 Bundle size impact

Comparing 2026-10-09T05:54:42.764Z → 2026-10-09T05:54:37.615Z

No size changes detected. 🟢

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant