@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
10 lines (9 loc) • 387 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.connectToDapp = connectToDapp;
async function connectToDapp(notificationPage) {
// Click `Connect` btn
await notificationPage.getByRole("button", { name: "Connect" }).click();
// wait till notification page is closed or context is closed
await notificationPage.waitForEvent("close");
}