UNPKG

@coinbase/onchaintestkit

Version:

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

14 lines (13 loc) 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transaction = void 0; const confirmTransaction = async (notificationPage) => { await notificationPage.getByRole("button", { name: "Confirm" }).click(); }; const rejectTransaction = async (notificationPage) => { await notificationPage.getByRole("button", { name: "Cancel" }).click(); }; exports.transaction = { confirm: confirmTransaction, reject: rejectTransaction, };