@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
22 lines (21 loc) • 763 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.rejectTransaction = exports.confirmTransaction = void 0;
/**
* Confirms a transaction in the Coinbase Wallet notification popup
* @param page - The notification page
*/
const confirmTransaction = async (page) => {
// Click the confirm/approve button
await page.getByTestId("request-confirm-button").click();
};
exports.confirmTransaction = confirmTransaction;
/**
* Rejects a transaction in the Coinbase Wallet notification popup
* @param page - The notification page
*/
const rejectTransaction = async (page) => {
// Click the reject/cancel button
await page.getByTestId("request-cancel-button").click();
};
exports.rejectTransaction = rejectTransaction;