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.
context
: Playwright browser contextpage
: The page where your dApp is runningmetamaskPage
: The MetaMask extension pageextensionId
: The ID of the MetaMask extensionMetaMask
class. For detailed information about the constructor and available methods, see the MetaMask API reference.
MetaMask
instance for you.playwright test --headed
).
To run in headless mode, set the HEADLESS
environment variable: