This project simulates a basic Web3 wallet connection test using HTML and JavaScript. It is designed for QA engineers who want to understand and validate how decentralized applications (dApps) interact with browser-based wallets like MetaMask.
- Detection of Web3 provider (
window.ethereum) - Requesting wallet access
- Retrieving and displaying the user's wallet address
- Handling connection errors or rejection by the user
This type of test is essential in Web3 applications to validate that:
- The user can connect their wallet properly
- The dApp receives the correct wallet address
- There is proper feedback for connection success or failure
- Clone or download this repo
- Open
qa_web_3_wallet_connection.htmlin any browser with MetaMask installed - Click on
Connect Wallet - Observe the connection status below the button
- HTML5
- Vanilla JavaScript (no frameworks)
- MetaMask as Web3 provider
If MetaMask is installed and the user accepts the connection, their wallet address will be displayed. If MetaMask is not available or the connection is rejected, an error message will be shown.
This is part of a series of practical Web3 QA examples for showcasing automation and testing logic in decentralized environments.
Author: Raúl Casado – GaslessQA 🔗 https://www.linkedin.com/in/gaslessqa/ License: MIT