photoprism/frontend/tests/acceptance/page-model/settings.js
2022-07-14 10:19:04 +02:00

40 lines
2 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-places input");
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-library");
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");
}
}