photoprism/frontend/tests/acceptance/page-model/settings.js

41 lines
2 KiB
JavaScript
Raw Normal View History

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");
2022-04-14 20:07:55 +02:00
this.disableplacesCheckbox = Selector("label").withText("Disable Places");
this.tensorflowCheckbox = Selector("label").withText("Disable TensorFlow");
this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode");
2022-04-15 12:33:52 +02:00
this.accountTab = Selector("#tab-settings-account");
}
}