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

44 lines
2.1 KiB
JavaScript
Raw Normal View History

import { Selector, t } from "testcafe";
export default class Page {
constructor() {
2022-10-23 12:48:10 +02:00
this.generalTab = Selector("#tab-settings_general");
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");
2022-10-18 17:55:28 +02:00
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");
2022-10-18 17:55:28 +02:00
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");
2022-10-18 17:55:28 +02:00
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
2022-10-18 17:55:28 +02:00
this.accountTab = Selector("#tab-settings_account");
2022-10-23 12:48:10 +02:00
this.servicesTab = Selector("#tab-settings_services");
}
}