@assert-equals/dappdriver
Version:
DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion
48 lines (47 loc) • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReviewRecoveryPhrase = void 0;
const html_element_1 = require("../../../controls/html-element");
const page_1 = require("../../../page");
const confirm_recovery_phrase_1 = require("./confirm-recovery-phrase");
/**
*
*
* @export
* @class ReviewRecoveryPhrase
* @extends {PageObject}
*/
class ReviewRecoveryPhrase extends page_1.PageObject {
get revealButton() {
return new html_element_1.HTMLElement('[data-testid="recovery-phrase-reveal"]');
}
get nextButton() {
return new html_element_1.HTMLElement('[data-testid="recovery-phrase-next-continue"]');
}
/**
* Creates an instance of ReviewRecoveryPhrase.
* @memberof ReviewRecoveryPhrase
*/
constructor() {
super('/home.html#/onboarding/review-recovery-phrase', 'MetaMask');
}
/**
*
*
* @return {*} {Promise<void>}
* @memberof ReviewRecoveryPhrase
*/
async revealSecretRecoveryPhrase() {
return await this.revealButton.click();
}
/**
*
*
* @return {*} {Promise<ConfirmRecoveryPhrase>}
* @memberof ReviewRecoveryPhrase
*/
async next() {
return await this.nextButton.click(confirm_recovery_phrase_1.ConfirmRecoveryPhrase);
}
}
exports.ReviewRecoveryPhrase = ReviewRecoveryPhrase;