@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
20 lines (19 loc) • 804 B
TypeScript
import { Page } from "@playwright/test";
import { CoinbaseWallet } from "../../../src/wallets/Coinbase";
import { MetaMask } from "../../../src/wallets/MetaMask";
/**
* Connects MetaMask wallet to the app and accepts Terms of Service
* This represents the standard onboarding flow for first-time users
*
* @param page - The Playwright page object
* @param metamask - The MetaMask wallet instance
*/
export declare function connectWallet(page: Page, metamask: MetaMask): Promise<void>;
/**
* Connects Coinbase wallet to the app
* This represents the standard onboarding flow for first-time users
*
* @param page - The Playwright page object
* @param coinbase - The Coinbase wallet instance
*/
export declare function connectCoinbaseWallet(page: Page, coinbase: CoinbaseWallet): Promise<void>;