瀏覽代碼

Tests: Update acceptance tests

theresa 3 年之前
父節點
當前提交
506bb82824

+ 7 - 7
frontend/tests/acceptance-new/photos-archive-private.js

@@ -265,13 +265,13 @@ test.meta("testID", "photos-archive-private-003")(
     const LabelPhoto = await photo.getNthPhotoUid("all", 0);
     const LabelPhoto = await photo.getNthPhotoUid("all", 0);
     await photo.triggerHoverAction("uid", LabelPhoto, "select");
     await photo.triggerHoverAction("uid", LabelPhoto, "select");
     await menu.openPage("people");
     await menu.openPage("people");
-    await subject.openNthSubject(1);
+    await subject.openNthSubject(0);
     const SubjectPhoto = await photo.getNthPhotoUid("all", 1);
     const SubjectPhoto = await photo.getNthPhotoUid("all", 1);
     await photo.triggerHoverAction("uid", SubjectPhoto, "select");
     await photo.triggerHoverAction("uid", SubjectPhoto, "select");
     await menu.openPage("folders");
     await menu.openPage("folders");
     await toolbar.search("archive");
     await toolbar.search("archive");
     await album.openNthAlbum(0);
     await album.openNthAlbum(0);
-    const FolderPhoto = await photo.getNthPhotoUid("all", 0);
+    const FolderPhoto = await photo.getNthPhotoUid("all", 1);
     await photo.triggerHoverAction("uid", FolderPhoto, "select");
     await photo.triggerHoverAction("uid", FolderPhoto, "select");
     await contextmenu.checkContextMenuCount("14");
     await contextmenu.checkContextMenuCount("14");
     await contextmenu.triggerContextMenuAction("archive", "");
     await contextmenu.triggerContextMenuAction("archive", "");
@@ -307,7 +307,7 @@ test.meta("testID", "photos-archive-private-003")(
     await t.navigateTo("/all?q=label%3Aseashore");
     await t.navigateTo("/all?q=label%3Aseashore");
     await photo.checkPhotoVisibility(LabelPhoto, false);
     await photo.checkPhotoVisibility(LabelPhoto, false);
     await menu.openPage("people");
     await menu.openPage("people");
-    await subject.openNthSubject(1);
+    await subject.openNthSubject(0);
     await photo.checkPhotoVisibility(SubjectPhoto, false);
     await photo.checkPhotoVisibility(SubjectPhoto, false);
     await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
     await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
     await photo.checkPhotoVisibility(FolderPhoto, false);
     await photo.checkPhotoVisibility(FolderPhoto, false);
@@ -388,13 +388,13 @@ test.meta("testID", "photos-archive-private-004").meta({ type: "smoke" })(
     const LabelPhoto = await photo.getNthPhotoUid("all", 0);
     const LabelPhoto = await photo.getNthPhotoUid("all", 0);
     await photo.triggerHoverAction("uid", LabelPhoto, "select");
     await photo.triggerHoverAction("uid", LabelPhoto, "select");
     await menu.openPage("people");
     await menu.openPage("people");
-    await subject.openNthSubject(1);
+    await subject.openNthSubject(0);
     const SubjectPhoto = await photo.getNthPhotoUid("all", 1);
     const SubjectPhoto = await photo.getNthPhotoUid("all", 1);
     await photo.triggerHoverAction("uid", SubjectPhoto, "select");
     await photo.triggerHoverAction("uid", SubjectPhoto, "select");
     await menu.openPage("folders");
     await menu.openPage("folders");
     await toolbar.search("archive");
     await toolbar.search("archive");
     await album.openNthAlbum(0);
     await album.openNthAlbum(0);
-    const FolderPhoto = await photo.getNthPhotoUid("all", 0);
+    const FolderPhoto = await photo.getNthPhotoUid("all", 1);
     await photo.triggerHoverAction("uid", FolderPhoto, "select");
     await photo.triggerHoverAction("uid", FolderPhoto, "select");
     await contextmenu.checkContextMenuCount("14");
     await contextmenu.checkContextMenuCount("14");
     await contextmenu.triggerContextMenuAction("private", "");
     await contextmenu.triggerContextMenuAction("private", "");
@@ -431,7 +431,7 @@ test.meta("testID", "photos-archive-private-004").meta({ type: "smoke" })(
     await t.navigateTo("/all?q=label%3Aseashore");
     await t.navigateTo("/all?q=label%3Aseashore");
     await photo.checkPhotoVisibility(LabelPhoto, false);
     await photo.checkPhotoVisibility(LabelPhoto, false);
     await menu.openPage("people");
     await menu.openPage("people");
-    await subject.openNthSubject(1);
+    await subject.openNthSubject(0);
     await photo.checkPhotoVisibility(SubjectPhoto, false);
     await photo.checkPhotoVisibility(SubjectPhoto, false);
     await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
     await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
     await photo.checkPhotoVisibility(FolderPhoto, false);
     await photo.checkPhotoVisibility(FolderPhoto, false);
@@ -486,7 +486,7 @@ test.meta("testID", "photos-archive-private-004").meta({ type: "smoke" })(
     await t.navigateTo("/all?q=label%3Aseashore");
     await t.navigateTo("/all?q=label%3Aseashore");
     await photo.checkPhotoVisibility(LabelPhoto, true);
     await photo.checkPhotoVisibility(LabelPhoto, true);
     await menu.openPage("people");
     await menu.openPage("people");
-    await subject.openNthSubject(1);
+    await subject.openNthSubject(0);
     await photo.checkPhotoVisibility(SubjectPhoto, true);
     await photo.checkPhotoVisibility(SubjectPhoto, true);
     await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
     await t.navigateTo("/folders/aqnah1321mgkt1w2/archive");
     await photo.checkPhotoVisibility(FolderPhoto, true);
     await photo.checkPhotoVisibility(FolderPhoto, true);

+ 1 - 1
frontend/tests/acceptance-new/photos.js

@@ -309,7 +309,7 @@ test.meta("testID", "photos-005").meta({ type: "smoke" })("Edit photo/video", as
   await contextmenu.clearSelection();
   await contextmenu.clearSelection();
 });
 });
 
 
-test.meta("testID", "photos-006")("Navigate from card view to place", async (t) => {
+test.skip.meta("testID", "photos-006")("Navigate from card view to place", async (t) => {
   await toolbar.setFilter("view", "Cards");
   await toolbar.setFilter("view", "Cards");
   await t.click(page.cardLocation.nth(0));
   await t.click(page.cardLocation.nth(0));
 
 

+ 1 - 13
frontend/tests/acceptance-new/settings/about.js

@@ -9,21 +9,9 @@ const menu = new Menu();
 test.meta("testID", "about-001")("About page is displayed with all links", async (t) => {
 test.meta("testID", "about-001")("About page is displayed with all links", async (t) => {
   await menu.openPage("about");
   await menu.openPage("about");
   await t
   await t
-    .expect(Selector("h2").withText("Trademarks").visible)
-    .ok()
     .expect(Selector('a[href="https://photoprism.app/"]').visible)
     .expect(Selector('a[href="https://photoprism.app/"]').visible)
     .ok()
     .ok()
-    .expect(Selector('a[href="https://www.patreon.com/photoprism"]').visible)
-    .ok()
-    .expect(Selector('a[href="https://github.com/photoprism/photoprism/projects/5"]').visible)
-    .ok()
-    .expect(Selector('a[href="https://docs.photoprism.app/"]').visible)
-    .ok()
-    .expect(Selector('a[href="/about/license"]').visible)
-    .ok()
-    .expect(Selector('a[href="https://gitter.im/browseyourlife/community"]').visible)
-    .ok()
-    .expect(Selector('a[href="https://twitter.com/photoprism_app"]').visible)
+    .expect(Selector('a[href="https://link.photoprism.app/patreon"]').visible)
     .ok();
     .ok();
 });
 });