-
Notifications
You must be signed in to change notification settings - Fork 4
Add Playwright E2E tests #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
…ss pages Add comprehensive E2E test suite using Playwright with Ethereum mainnet fixtures: Block tests: - Pre-London blocks (openscan-explorer#10,000, openscan-explorer#1,000,000) with difficulty, total difficulty - Post-London blocks (openscan-explorer#20,000,000) with base fee, burnt fees, withdrawals - London hard fork boundary blocks (openscan-explorer#12,964,999, openscan-explorer#12,965,000) - More details section with all hash fields verification Transaction fixtures covering all types: - Legacy (Type 0) - pre-EIP-2718 - EIP-1559 (Type 2) - post-London with maxFeePerGas - Blob (Type 3) - post-Dencun with blob gas fields - Failed transactions and contract creations Address tests: - EOA accounts with ENS resolution - ERC20 token contracts (USDC) - Verified contracts (Uniswap Router) Infrastructure: - Page Object Model pattern for maintainability - GitHub Actions workflow for PR testing - Mainnet fixtures indexed by block number/tx hash
|
🚀 Preview: https://pr-88--openscan.netlify.app |
ERC721 (BAYC) tests: - Collection details (name, symbol, total minted) - Contract verification (date, match type, compiler 0.7.0) - Read functions (21): name, symbol, totalSupply, balanceOf, ownerOf, etc. - Write functions (16): approve, transferFrom, safeTransferFrom, etc. - Events (4): Approval, ApprovalForAll, OwnershipTransferred, Transfer ERC1155 (Rarible) tests: - Multi-token collection details (name, symbol, metadata URI) - Contract verification (date, MATCH type, compiler 0.5.17) - Read functions (16): balanceOf, name, symbol, uri, etc. - Write functions (12): mint, burn, safeTransferFrom, etc. - Events (8): TransferSingle, TransferBatch, ApprovalForAll, URI, etc. Token detail page tests: - ERC721 token viewing with image container and details section - ERC1155 token viewing with balance lookup section - Navigation from collection page via token lookup input - Error handling for invalid tokens/contracts
Token fixtures with detailed metadata: - BAYC openscan-explorer#1: properties (Mouth: Grin, Clothes: Vietnam Jacket, Background: Orange, Eyes: Blue Beams, Fur: Robot) - BAYC openscan-explorer#100: properties (Background: Yellow, Mouth: Bored Cigarette, Hat: Party Hat 2, Fur: Dark Brown, Eyes: Wide Eyed) - Token URIs, collection size (10,000 NFTs) Token detail page tests: - NFT Details section (Token ID, Token Standard, Collection Size, Owner) - Token image display - Properties/attributes grid with trait types and values - Token URI section with IPFS link and Open URI button - Raw Metadata section (expandable) - Different properties for different tokens (openscan-explorer#1 vs openscan-explorer#100)
MatiasOS
approved these changes
Dec 11, 2025
Closed
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.
Add comprehensive Playwright E2E test suite for OpenScan Explorer using Ethereum mainnet data.
Test Coverage (43 tests)
Block Page (7 tests)
Transaction Page (7 tests)
Address Page (17 tests)
ERC721 (BAYC) tests:
ERC1155 (Rarible) tests:
Token Detail Page (12 tests)
ERC721 Token Tests (BAYC #1 and #100):
ERC1155 Token Tests (Rarible):
Error Handling:
Infrastructure
Files Added/Modified