From f9fda55d431a1c2e058dbc8c1807270e843c4867 Mon Sep 17 00:00:00 2001 From: theresa Date: Mon, 28 Feb 2022 14:50:01 +0100 Subject: [PATCH] Tests: Update page-models --- frontend/tests/page-model/library.js | 3 +++ frontend/tests/page-model/settings.js | 13 +++++++++++++ frontend/tests/page-model/subject.js | 1 + 3 files changed, 17 insertions(+) diff --git a/frontend/tests/page-model/library.js b/frontend/tests/page-model/library.js index 2c3b832e5..4c14f3309 100644 --- a/frontend/tests/page-model/library.js +++ b/frontend/tests/page-model/library.js @@ -9,5 +9,8 @@ export default class Page { this.importTab = Selector("#tab-library-import", { timeout: 15000 }); this.indexTab = Selector("#tab-library-index", { timeout: 15000 }); this.logsTab = Selector("#tab-library-logs", { timeout: 15000 }); + this.moveCheckbox = Selector("label").withText("Move Files"); + this.completeRescanCheckbox = Selector("label").withText("Complete Rescan"); + } } diff --git a/frontend/tests/page-model/settings.js b/frontend/tests/page-model/settings.js index 0e676df83..a97c87af2 100644 --- a/frontend/tests/page-model/settings.js +++ b/frontend/tests/page-model/settings.js @@ -21,5 +21,18 @@ export default class Page { 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.placesCheckbox = Selector("label").withText("Disable Places"); + this.tensorflowCheckbox = Selector("label").withText("Disable TensorFlow"); + this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode"); } } diff --git a/frontend/tests/page-model/subject.js b/frontend/tests/page-model/subject.js index fc8034268..25b517d84 100644 --- a/frontend/tests/page-model/subject.js +++ b/frontend/tests/page-model/subject.js @@ -5,6 +5,7 @@ export default class Page { this.recognizedTab = Selector("#tab-people > a", { timeout: 15000 }); this.newTab = Selector("#tab-people_faces > a", { timeout: 15000 }); this.showAllNewButton = Selector('a[href="/all?q=face%3Anew"]'); + this.subjectName = Selector("a.is-subject div.v-card__title"); } async addNameToFace(id, name) {