Tests: Update acceptance tests

This commit is contained in:
theresa 2022-04-14 20:07:55 +02:00
parent 506bb82824
commit 0a9f6a72bc
2 changed files with 8 additions and 3 deletions

View file

@ -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)); if (action === "share") {
await t.click(Selector("a.uid-" + uidOrNth + " .input-" + action)); 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));

View file

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