UNPKG

@coinbase/onchaintestkit

Version:

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

34 lines (33 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HomePage = void 0; const addNetwork_1 = require("./actions/addNetwork"); const addWithPrivateKey_1 = require("./actions/addWithPrivateKey"); class HomePage { constructor(page) { this.page = page; } async addNetwork(network) { await (0, addNetwork_1.addNetwork)(this.page, network); } async addWithPrivateKey(privateKey, password) { await (0, addWithPrivateKey_1.addWithPrivateKey)(this.page, privateKey, password); } async switchAccount(accountName) { // TODO: Implement account switching for Coinbase // This should: // 1. Open account dropdown // 2. Select the account console.log(`Switching to account: ${accountName}`); } async addNewAccount(accountName) { // TODO: Implement account creation for Coinbase // This should: // 1. Open account menu // 2. Click create account // 3. Set account name // 4. Save account console.log(`Creating new account: ${accountName}`); } } exports.HomePage = HomePage;