midnight-cq:dapp-testing
OfficialEnd-to-end DApp tests with Playwright and mocks.
Software Engineering#vitest#playwright#mocking#integration-testing#e2e-testing#dapp-testing#contract-simulator
Authordevrelaicom
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Tests the UI of Midnight DApps by validating end-to-end user flows, contract interactions, and wallet integration without needing a live blockchain or browser wallet.
Core Features & Use Cases
- Layered testing approach: unit tests for components, integration tests with a contract simulator wrapping the ContractProvider, and end-to-end tests with Playwright to exercise wallet flows and UI states.
- Wallet mocking and simulator-backed circuits: replace live network calls with a deterministic simulator to verify correct UI rendering and error handling.
- Reference-guided patterns: includes documentation and patterns for mocking ContractProvider, writing robust tests, and organizing test suites so UI behaves correctly under varied scenarios.
Quick Start
Run a simple integration test by creating a mock ContractProvider and asserting initial UI-state render.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: midnight-cq:dapp-testing Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#midnight-cq-dapp-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.