photoprism/frontend/tests/acceptance/page-model/settings.js
2022-10-18 17:55:28 +02:00

41 lines
2.1 KiB
JavaScript

import { Selector, t } from "testcafe";
export default class Page {
constructor() {
this.languageInput = Selector(".input-language input");
this.uploadCheckbox = Selector(".input-upload input");
this.downloadCheckbox = Selector(".input-download input");
this.importCheckbox = Selector(".input-import input");
this.archiveCheckbox = Selector('input[aria-label="Archive"]');
this.editCheckbox = Selector(".input-edit input");
this.filesCheckbox = Selector(".input-files input");
this.momentsCheckbox = Selector(".input-moments input");
this.labelsCheckbox = Selector(".input-labels input");
this.logsCheckbox = Selector(".input-logs input");
this.shareCheckbox = Selector(".input-share input");
this.placesCheckbox = Selector('input[aria-label="Places"]');
this.privateCheckbox = Selector('input[aria-label="Private"]');
this.peopleCheckbox = Selector(".input-people input");
this.deleteCheckbox = Selector(".input-delete input");
this.libraryCheckbox = Selector(".input-library input");
this.libraryTab = Selector("#tab-settings_media");
this.reviewCheckbox = Selector(".input-review input");
this.convertCheckbox = Selector(".input-convert input");
this.estimatesCheckbox = Selector(".input-estimates input");
this.dateTimeStacksCheckbox = Selector(".input-stack-meta input");
this.uuidStacksCheckbox = Selector(".input-stack-uuid input");
this.nameStacksCheckbox = Selector(".input-stack-name input");
this.advancedTab = Selector("#tab-settings_advanced");
this.debugCheckbox = Selector("label").withText("Debug Logs");
this.backupCheckbox = Selector("label").withText("Disable Backups");
this.exiftoolCheckbox = Selector("label").withText("Disable ExifTool");
this.disableplacesCheckbox = Selector("label").withText("Disable Places");
this.tensorflowCheckbox = Selector("label").withText("Disable TensorFlow");
this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode");
this.accountTab = Selector("#tab-settings_account");
this.changePasswordAction = Selector("button.action-change-password");
}
}