@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) • 921 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeedBackup = void 0;
const __1 = require("../..");
const controls_1 = require("../../../controls");
const page_1 = require("../../../page");
/**
*
*
* @export
* @class SeedBackup
* @extends {PageObject}
*/
class SeedBackup extends page_1.PageObject {
get revealYourRecoveryPhraseButton() {
return new controls_1.HTMLElement('[data-testid="show-recovery-phrase-button"]');
}
/**
* Creates an instance of SeedBackup.
* @memberof SeedBackup
*/
constructor() {
super('/popup.html#/seed-backup-prompt', 'Rainbow Wallet');
}
/**
*
*
* @return {*} {Promise<RevealSeed>}
* @memberof SeedBackup
*/
async revealYourRecoveryPhrase() {
return await this.revealYourRecoveryPhraseButton.click(__1.RevealSeed);
}
}
exports.SeedBackup = SeedBackup;