Repository navigation
test(e2e): run the suites against the truapi test host - #435
Open
decrypto21 wants to merge 7 commits into
Open
decrypto21 wants to merge 7 commits into
decrypto21 wants to merge 7 commits into
Conversation
# Conflicts: # product-sdk/pnpm-lock.yaml # product-sdk/pnpm-workspace.yaml
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
📦 Bundle size impactComparing No size changes detected. 🟢 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The e2e suites now use
@parity/truapi-host/testing, which runs the realtruapi-servercore and mocks the host seam around it. Only the fixture changes; the assertions stay where they could.@parity/truapiand@parity/truapi-hostship 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
productAccountsis gone. Three suites submit real extrinsics and need a balance on the account the host derives:tx-demo5EEoZCuLSwtnbaJPEubsr6smMWsAoNW1Hv5omUGgQyM5zYEUcontracts-demo5Dkio4JAknT6B2T23UggdjwTeprFZZd8ijqQdzejuVcC5Scystatement-store-demo16kqhX4WuciTyM6VFT4XtEen2ec4vfoPj5ZbGGe5d6iAqxRkAll 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.mjsreports the balances and exits non-zero if one runs short, which is worth running first: an empty account surfaces asInvalid.PaymentorStatement 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 throughnetworkswith a-peopleid, so the host can serve the store in-page.Skipped
Two
statement-store-demosubscription 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-demoandcontracts-demo/querywere already skipped.49 passed, 0 failed, 15 skipped across the nine demos, in one run.