From 0a9f6a72bc9870ea4a054bdb700364463531ed0d Mon Sep 17 00:00:00 2001 From: theresa Date: Thu, 14 Apr 2022 20:07:55 +0200 Subject: [PATCH] Tests: Update acceptance tests --- frontend/tests/page-model/album.js | 9 +++++++-- frontend/tests/page-model/settings.js | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/tests/page-model/album.js b/frontend/tests/page-model/album.js index 0a6eaa278..7c77681b5 100644 --- a/frontend/tests/page-model/album.js +++ b/frontend/tests/page-model/album.js @@ -61,8 +61,13 @@ export default class Page { async triggerHoverAction(mode, uidOrNth, action) { if (mode === "uid") { - await t.hover(Selector("a.uid-" + uidOrNth)); - await t.click(Selector("a.uid-" + uidOrNth + " .input-" + action)); + if (action === "share") { + await t.hover(Selector("a.uid-" + uidOrNth)); + await t.click(Selector("a.uid-" + uidOrNth + " .action-" + action)); + } else { + await t.hover(Selector("a.uid-" + uidOrNth)); + await t.click(Selector("a.uid-" + uidOrNth + " .input-" + action)); + } } if (mode === "nth") { await t.hover(Selector("a.is-album").nth(uidOrNth)); diff --git a/frontend/tests/page-model/settings.js b/frontend/tests/page-model/settings.js index a97c87af2..521b21fc6 100644 --- a/frontend/tests/page-model/settings.js +++ b/frontend/tests/page-model/settings.js @@ -31,7 +31,7 @@ export default class Page { 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.disableplacesCheckbox = Selector("label").withText("Disable Places"); this.tensorflowCheckbox = Selector("label").withText("Disable TensorFlow"); this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode"); }