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"); }