Tests: Refactor acceptance-tests

This commit is contained in:
theresa 2022-01-24 12:53:55 +01:00
parent 9ccf5f634a
commit 86f6cf0de9
3 changed files with 6 additions and 9 deletions

View file

@ -246,7 +246,7 @@ test.meta("testID", "photos-013")(
const LabelPhoto = await photo.getNthPhotoUid("all", 0);
await photoviews.triggerHoverAction("uid", LabelPhoto, "select");
await menu.openPage("people");
await subject.openNthSubject(0);
await subject.openNthSubject(1);
const SubjectPhoto = await photo.getNthPhotoUid("all", 1);
await photoviews.triggerHoverAction("uid", SubjectPhoto, "select");
await menu.openPage("folders");
@ -287,7 +287,7 @@ test.meta("testID", "photos-013")(
await t.navigateTo("/all?q=label%3Aseashore");
await photo.checkPhotoVisibility(LabelPhoto, false);
await menu.openPage("people");
await subject.openNthSubject(0);
await subject.openNthSubject(1);
await photo.checkPhotoVisibility(SubjectPhoto, false);
await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
await photo.checkPhotoVisibility(FolderPhoto, false);
@ -368,7 +368,7 @@ test.meta("testID", "photos-014")(
const LabelPhoto = await photo.getNthPhotoUid("all", 0);
await photoviews.triggerHoverAction("uid", LabelPhoto, "select");
await menu.openPage("people");
await subject.openNthSubject(0);
await subject.openNthSubject(1);
const SubjectPhoto = await photo.getNthPhotoUid("all", 1);
await photoviews.triggerHoverAction("uid", SubjectPhoto, "select");
await menu.openPage("folders");
@ -410,7 +410,7 @@ test.meta("testID", "photos-014")(
await t.navigateTo("/all?q=label%3Aseashore");
await photo.checkPhotoVisibility(LabelPhoto, false);
await menu.openPage("people");
await subject.openNthSubject(0);
await subject.openNthSubject(1);
await photo.checkPhotoVisibility(SubjectPhoto, false);
await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
await photo.checkPhotoVisibility(FolderPhoto, false);
@ -465,7 +465,7 @@ test.meta("testID", "photos-014")(
await t.navigateTo("/all?q=label%3Aseashore");
await photo.checkPhotoVisibility(LabelPhoto, true);
await menu.openPage("people");
await subject.openNthSubject(0);
await subject.openNthSubject(1);
await photo.checkPhotoVisibility(SubjectPhoto, true);
await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
await photo.checkPhotoVisibility(FolderPhoto, true);

View file

@ -1,7 +1,5 @@
import { Selector } from "testcafe";
import testcafeconfig from "./testcafeconfig";
import Page from "./page-model";
import { ClientFunction } from "testcafe";
import fs from "fs";
import Menu from "../page-model/menu";
import Toolbar from "../page-model/toolbar";

View file

@ -238,7 +238,6 @@ test.meta("testID", "photos-005")("Edit photo/video", async (t) => {
"07",
"2019",
"04:30:30",
"",
"Europe/Moscow",
"Albania",
"-1",
@ -256,7 +255,7 @@ test.meta("testID", "photos-005")("Edit photo/video", async (t) => {
"Super nice cat license",
"Description of a nice image :)",
"cat",
""
"Some notes"
);
await photoedit.undoPhotoEdit(
FirstPhotoTitle,