@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
29 lines (28 loc) • 1.17 kB
TypeScript
import { Page } from "@playwright/test";
import { CoinbaseWallet } from "../../../src/wallets/Coinbase";
import { MetaMask } from "../../../src/wallets/MetaMask";
import { PhantomWallet } from "../../../src/wallets/Phantom";
/**
* 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>;
/**
* Connects Phantom wallet to the app
* This represents the standard onboarding flow for first-time users
*
* @param page - The Playwright page object
* @param phantom - The Phantom wallet instance
*/
export declare function connectPhantomWallet(page: Page, phantom: PhantomWallet): Promise<void>;