@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
25 lines (24 loc) • 841 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HomePage = void 0;
const addNetwork_1 = require("./actions/addNetwork");
class HomePage {
constructor(page) {
this.page = page;
}
async addNetwork(network) {
await (0, addNetwork_1.addNetwork)(this.page, network);
}
async importPrivateKey(_privateKey) {
// TODO: a more stable implementation needed
}
async switchNetwork(networkName, isTestnet) {
// Implementation would switch to the specified network
console.log(`Switching to network: ${networkName}, isTestnet: ${isTestnet}`);
}
async switchAccount(accountName) {
// Implementation would switch to the specified account
console.log(`Switching to account: ${accountName}`);
}
}
exports.HomePage = HomePage;