UNPKG

@coinbase/onchaintestkit

Version:

End-to-end testing toolkit for blockchain applications, powered by Playwright

17 lines (16 loc) 587 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.connectToDapp = connectToDapp; /** * Handles the connect to dapp notification in Coinbase Wallet * * @param page - The Playwright page object representing the notification page */ async function connectToDapp(page) { // Wait for the notification to appear await page.waitForLoadState("domcontentloaded"); // Click connect button await page.locator('[data-testid="allow-authorize-button"]').click(); // Wait for notification page to close await page.waitForEvent("close"); }