test(vibenet): add e2e coverage for vibenet, faucet, and explorer - #167
Merged
Conversation
Adds Playwright specs alongside the existing home spec: - vibenet.spec.ts: /vibenet loads (title + intro copy) - faucet.spec.ts: /vibenet/faucet loads (title + Recipient Address) - explorer.spec.ts: /vibenet/explorer loads and shows Latest Blocks / Latest Transactions, and clicking the latest block and latest transaction opens their detail pages. Vibenet is reset periodically, so the explorer specs assert blocks/transactions are present in general and can load rather than checking specific values, and tolerate the momentary empty-transactions state after a reset (skip the drill-in rather than flake).
Collaborator
🟡 Heimdall Review Status
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Adds Playwright e2e coverage for the vibenet routes, alongside the existing
home.spec.ts:vibenet.spec.ts—/vibenetloads (page title + intro copy).faucet.spec.ts—/vibenet/faucetloads (page title + "Recipient Address").explorer.spec.ts—/vibenet/explorerloads and shows "Latest Blocks" / "Latest Transactions", and clicking into the latest block and latest transaction opens their detail pages.Vibenet is reset from time to time, so the explorer specs assert that blocks and transactions are present in general and can load — never that a specific block/tx exists. They also tolerate the momentary empty-transactions state right after a reset (the transaction drill-in skips rather than flakes when there are no txs yet).
Screenshots
N/A (no visual changes — tests only).
Test plan
npm run test:e2e(Playwright builds and starts the app on :3100, runs against the live vibenet API): 6 passed (3 new explorer specs + faucet + vibenet + existing home).data-testids exist on these pages): page titles viatoHaveTitle, panels viagetByText, and rows viatr[aria-label^="Block "]/tr[aria-label^="Transaction "].