Tests: Update page model

This commit is contained in:
theresa 2022-10-23 12:48:10 +02:00
parent fb0800a639
commit a0c32e6618
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import { Selector, t } from "testcafe";
export default class Page {
constructor() {
this.changePasswordAction = Selector("button.action-change-password");
this.currentPassword = Selector(".input-current-password input", { timeout: 15000 });
this.newPassword = Selector(".input-new-password input", { timeout: 15000 });
this.retypePassword = Selector(".input-retype-password input", { timeout: 15000 });

View file

@ -2,6 +2,7 @@ import { Selector, t } from "testcafe";
export default class Page {
constructor() {
this.generalTab = Selector("#tab-settings_general");
this.languageInput = Selector(".input-language input");
this.uploadCheckbox = Selector(".input-upload input");
this.downloadCheckbox = Selector(".input-download input");
@ -36,6 +37,7 @@ export default class Page {
this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode");
this.accountTab = Selector("#tab-settings_account");
this.changePasswordAction = Selector("button.action-change-password");
this.servicesTab = Selector("#tab-settings_services");
}
}