example.spec.ts
Import
First, you need to import the necessary modules and setup:testWithSynpress function takes the MetaMask fixtures as an argument, which includes your wallet setup configuration. This setup defines how your wallet should be configured before each test.
Define your test
Now that you have your test instance configured, you can write your test:context: Playwright browser contextpage: The page where your dApp is runningmetamaskPage: The MetaMask extension pageextensionId: The ID of the MetaMask extension
MetaMask class. For detailed information about the constructor and available methods, see the MetaMask API reference.

