UNPKG

@assert-equals/dappdriver

Version:

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

36 lines (35 loc) 912 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Completion = void 0; const __1 = require("../.."); const html_element_1 = require("../../../controls/html-element"); const page_1 = require("../../../page"); /** * * * @export * @class Completion * @extends {PageObject} */ class Completion extends page_1.PageObject { get completeButton() { return new html_element_1.HTMLElement('[data-testid="onboarding-complete-done"]'); } /** * Creates an instance of Completion. * @memberof Completion */ constructor() { super('/home.html#/onboarding/completion', 'MetaMask'); } /** * * * @return {*} {Promise<SidePanel>} * @memberof Completion */ async completeOnboarding() { return await this.completeButton.clickAndSwitchToWindow(__1.SidePanel); } } exports.Completion = Completion;