UNPKG

@coinbase/onchaintestkit

Version:

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

26 lines (25 loc) 892 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.network = void 0; const approveNewNetwork = async (notificationPage) => { // click approve button await notificationPage.getByRole("button", { name: "Approve" }).click(); }; const rejectNewNetwork = async (notificationPage) => { // click cancel button await notificationPage.getByRole("button", { name: "Cancel" }).click(); }; const approveSwitchNetwork = async (notificationPage) => { // click switch network button await notificationPage.getByRole("button", { name: "Switch Network" }).click(); }; const rejectSwitchNetwork = async (notificationPage) => { // click cancel button await notificationPage.getByRole("button", { name: "Cancel" }).click(); }; exports.network = { approveNewNetwork, rejectNewNetwork, approveSwitchNetwork, rejectSwitchNetwork, };