38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { expect } from "expect-webdriverio";
|
|
import { SeedPhraseVerify } from "../../constants/text.constants.js";
|
|
|
|
export class SeedPhraseVerifyScreen {
|
|
get continueButton() {
|
|
return $("[data-testid=\"primary-button-verify-seed-phrase\"]");
|
|
}
|
|
|
|
get id() {
|
|
return "[data-testid=\"verify-seed-phrase-page\"]";
|
|
}
|
|
|
|
get screenDescriptionText() {
|
|
return $("[data-testid=\"verify-seed-phrase-paragraph-top\"]");
|
|
}
|
|
|
|
get screenTitle() {
|
|
return $("[data-testid=\"verify-seed-phrase-title\"]");
|
|
}
|
|
|
|
get seedPhraseContainer() {
|
|
return $("[data-testid=\"matching-seed-phrase-container\"]");
|
|
}
|
|
|
|
async loads() {
|
|
await expect(this.screenTitle).toBeDisplayed();
|
|
await expect(this.screenTitle).toHaveText(SeedPhraseVerify.Title);
|
|
await expect(this.screenDescriptionText).toBeExisting();
|
|
await expect(this.screenDescriptionText).toHaveText(
|
|
SeedPhraseVerify.Description
|
|
);
|
|
await expect(this.seedPhraseContainer).toBeDisplayed();
|
|
await expect(this.continueButton).toBeExisting();
|
|
}
|
|
}
|
|
|
|
export default new SeedPhraseVerifyScreen();
|