From 85722d392fc311cb284951678dff5befb55b5f69 Mon Sep 17 00:00:00 2001 From: theresa Date: Tue, 18 Oct 2022 17:55:28 +0200 Subject: [PATCH] Tests: Update selectors in page model --- frontend/tests/acceptance/page-model/library.js | 6 +++--- frontend/tests/acceptance/page-model/settings.js | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/tests/acceptance/page-model/library.js b/frontend/tests/acceptance/page-model/library.js index 4c14f3309..372e4212a 100644 --- a/frontend/tests/acceptance/page-model/library.js +++ b/frontend/tests/acceptance/page-model/library.js @@ -6,9 +6,9 @@ export default class Page { this.import = Selector(".action-import"); this.indexFolderSelect = Selector(".input-index-folder input", { timeout: 15000 }); this.index = Selector(".action-index"); - 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.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/acceptance/page-model/settings.js b/frontend/tests/acceptance/page-model/settings.js index fc68c5c5d..b69540dc9 100644 --- a/frontend/tests/acceptance/page-model/settings.js +++ b/frontend/tests/acceptance/page-model/settings.js @@ -13,13 +13,13 @@ export default class Page { 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.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-library"); + this.libraryTab = Selector("#tab-settings_media"); this.reviewCheckbox = Selector(".input-review input"); this.convertCheckbox = Selector(".input-convert input"); this.estimatesCheckbox = Selector(".input-estimates input"); @@ -27,7 +27,7 @@ export default class Page { this.uuidStacksCheckbox = Selector(".input-stack-uuid input"); this.nameStacksCheckbox = Selector(".input-stack-name input"); - this.advancedTab = Selector("#tab-settings-advanced"); + 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"); @@ -35,6 +35,7 @@ export default class Page { this.tensorflowCheckbox = Selector("label").withText("Disable TensorFlow"); this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode"); - this.accountTab = Selector("#tab-settings-account"); + this.accountTab = Selector("#tab-settings_account"); + this.changePasswordAction = Selector("button.action-change-password"); } }