Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.synpress.io/llms.txt

Use this file to discover all available pages before exploring further.

Classes

MemberDescription
EthereumWalletMockMock implementation of an Ethereum wallet for testing purposes.
MetaMaskMetaMask class for interacting with the MetaMask extension in Playwright tests.

Variables

MemberDescription
DEFAULT_NETWORK_IDThe network ID (Optimism network by default).
PRIVATE_KEYThe private key used for testing purposes.
web3MockPathRelative path to the web3-mock bundle.

Functions

MemberDescription
ethereumWalletMockFixturesDeclares a test.
getExtensionIdReturns the extension ID for the given extension name. The ID is fetched from the chrome://extensions page.
metaMaskFixtures-
mockEthereum-
unlockForFixtureA more advanced version of the MetaMask.unlock() function that incorporates various workarounds for MetaMask issues, among other things.