UNPKG

@assert-equals/dappdriver

Version:

DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion

34 lines (33 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SecureYourWallet = void 0; const html_element_1 = require("../../../controls/html-element"); const page_1 = require("../../../page"); const review_recovery_phrase_1 = require("./review-recovery-phrase"); /** * * * @export * @class SecureYourWallet * @extends {PageObject} */ class SecureYourWallet extends page_1.PageObject { secureButton = () => new html_element_1.HTMLElement('[data-testid="secure-wallet-recommended"]'); /** * Creates an instance of SecureYourWallet. * @memberof SecureYourWallet */ constructor() { super('/home.html#onboarding/secure-your-wallet', 'MetaMask'); } /** * * * @return {*} {Promise<ReviewRecoveryPhrase>} * @memberof SecureYourWallet */ async secureMyWallet() { return await this.secureButton().click(review_recovery_phrase_1.ReviewRecoveryPhrase); } } exports.SecureYourWallet = SecureYourWallet;