Explorar o código

Tests: Update acceptance tests

theresa %!s(int64=3) %!d(string=hai) anos
pai
achega
0a9f6a72bc

+ 7 - 2
frontend/tests/page-model/album.js

@@ -61,8 +61,13 @@ export default class Page {
 
 
   async triggerHoverAction(mode, uidOrNth, action) {
   async triggerHoverAction(mode, uidOrNth, action) {
     if (mode === "uid") {
     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") {
     if (mode === "nth") {
       await t.hover(Selector("a.is-album").nth(uidOrNth));
       await t.hover(Selector("a.is-album").nth(uidOrNth));

+ 1 - 1
frontend/tests/page-model/settings.js

@@ -31,7 +31,7 @@ export default class Page {
     this.debugCheckbox = Selector("label").withText("Debug Logs");
     this.debugCheckbox = Selector("label").withText("Debug Logs");
     this.backupCheckbox = Selector("label").withText("Disable Backups");
     this.backupCheckbox = Selector("label").withText("Disable Backups");
     this.exiftoolCheckbox = Selector("label").withText("Disable ExifTool");
     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.tensorflowCheckbox = Selector("label").withText("Disable TensorFlow");
     this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode");
     this.readOnlyCheckbox = Selector("label").withText("Read-Only Mode");
   }
   }