From 067d7b0b7904250efc7f7023b1c1a599476b86d9 Mon Sep 17 00:00:00 2001 From: theresa Date: Tue, 18 Oct 2022 17:54:56 +0200 Subject: [PATCH] Tests: Adapt paths in photo tests --- .../photos-archive-private.js | 28 +++++++++---------- .../acceptance-public/photos-upload-delete.js | 8 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/frontend/tests/acceptance/acceptance-public/photos-archive-private.js b/frontend/tests/acceptance/acceptance-public/photos-archive-private.js index 3fcb89a37..fc5fb75d7 100644 --- a/frontend/tests/acceptance/acceptance-public/photos-archive-private.js +++ b/frontend/tests/acceptance/acceptance-public/photos-archive-private.js @@ -313,20 +313,20 @@ test.meta("testID", "photos-archive-private-003").meta({ mode: "public" })( await photo.checkPhotoVisibility(PrivatePhoto, false); await menu.openPage("video"); await photo.checkPhotoVisibility(Video, false); - await t.navigateTo("/calendar/aqmxlr71p6zo22dk/january-2017"); + await t.navigateTo("/library/calendar/aqmxlr71p6zo22dk/january-2017"); await photo.checkPhotoVisibility(CalendarPhoto, false); await menu.openPage("moments"); await album.openNthAlbum(0); await photo.checkPhotoVisibility(MomentPhoto, false); - await t.navigateTo("/states/aqmxlr71tebcohrw/western-cape-south-africa"); + await t.navigateTo("/library/states/aqmxlr71tebcohrw/western-cape-south-africa"); await photo.checkPhotoVisibility(StatesPhoto, false); - await t.navigateTo("/all?q=label%3Aseashore"); + await t.navigateTo("/library/all?q=label%3Aseashore"); await photo.checkPhotoVisibility(LabelPhoto, false); await menu.openPage("people"); await subject.openNthSubject(0); await photo.checkPhotoVisibility(SubjectPhoto, false); - await t.navigateTo("/folders/aqnah1321mgkt1w2/archive"); + await t.navigateTo("/library/folders/aqnah1321mgkt1w2/archive"); await photo.checkPhotoVisibility(FolderPhoto, false); await menu.openPage("archive"); @@ -449,23 +449,23 @@ test.meta("testID", "photos-archive-private-004").meta({ type: "short", mode: "p await photo.checkPhotoVisibility(FavoritesPhoto, false); await menu.openPage("video"); await photo.checkPhotoVisibility(Video, false); - await t.navigateTo("/albums?q=Holiday"); + await t.navigateTo("/library/albums?q=Holiday"); await album.openNthAlbum(0); await photo.checkPhotoVisibility(AlbumPhoto, true); - await t.navigateTo("/calendar/aqmxlr71p6zo22dk/january-2017"); + await t.navigateTo("/library/calendar/aqmxlr71p6zo22dk/january-2017"); await photo.checkPhotoVisibility(CalendarPhoto, false); await menu.openPage("moments"); await album.openNthAlbum(0); await photo.checkPhotoVisibility(MomentPhoto, false); - await t.navigateTo("/states/aqmxlr71tebcohrw/western-cape-south-africa"); + await t.navigateTo("/library/states/aqmxlr71tebcohrw/western-cape-south-africa"); await photo.checkPhotoVisibility(StatesPhoto, false); - await t.navigateTo("/all?q=label%3Aseashore"); + await t.navigateTo("/library/all?q=label%3Aseashore"); await photo.checkPhotoVisibility(LabelPhoto, false); await menu.openPage("people"); await subject.openNthSubject(0); await photo.checkPhotoVisibility(SubjectPhoto, false); - await t.navigateTo("/folders/aqnah1321mgkt1w2/archive"); + await t.navigateTo("/library/folders/aqnah1321mgkt1w2/archive"); await photo.checkPhotoVisibility(FolderPhoto, false); await menu.openPage("private"); @@ -512,23 +512,23 @@ test.meta("testID", "photos-archive-private-004").meta({ type: "short", mode: "p await photo.checkPhotoVisibility(FavoritesPhoto, true); await menu.openPage("video"); await photo.checkPhotoVisibility(Video, true); - await t.navigateTo("/albums?q=Holiday"); + await t.navigateTo("/library/albums?q=Holiday"); await album.openNthAlbum(0); await photo.checkPhotoVisibility(AlbumPhoto, true); - await t.navigateTo("/calendar/aqmxlr71p6zo22dk/january-2017"); + await t.navigateTo("/library/calendar/aqmxlr71p6zo22dk/january-2017"); await photo.checkPhotoVisibility(CalendarPhoto, true); await menu.openPage("moments"); await album.openNthAlbum(0); await photo.checkPhotoVisibility(MomentPhoto, true); - await t.navigateTo("/states/aqmxlr71tebcohrw/western-cape-south-africa"); + await t.navigateTo("/library/states/aqmxlr71tebcohrw/western-cape-south-africa"); await photo.checkPhotoVisibility(StatesPhoto, true); - await t.navigateTo("/all?q=label%3Aseashore"); + await t.navigateTo("/library/all?q=label%3Aseashore"); await photo.checkPhotoVisibility(LabelPhoto, true); await menu.openPage("people"); await subject.openNthSubject(0); await photo.checkPhotoVisibility(SubjectPhoto, true); - await t.navigateTo("/folders/aqnah1321mgkt1w2/archive"); + await t.navigateTo("/library/folders/aqnah1321mgkt1w2/archive"); await photo.checkPhotoVisibility(FolderPhoto, true); } } diff --git a/frontend/tests/acceptance/acceptance-public/photos-upload-delete.js b/frontend/tests/acceptance/acceptance-public/photos-upload-delete.js index 19063a573..c8bd95ec6 100644 --- a/frontend/tests/acceptance/acceptance-public/photos-upload-delete.js +++ b/frontend/tests/acceptance/acceptance-public/photos-upload-delete.js @@ -50,7 +50,7 @@ test.meta("testID", "photos-upload-delete-001").meta({ type: "short", mode: "pub await t.expect(PhotoCountAfterUpload).eql(1); const UploadedPhoto = await photo.getNthPhotoUid("all", 0); - await t.navigateTo("/library/files/2020/10"); + await t.navigateTo("/library/index/files/2020/10"); const FileCount = await originals.getFileCount(); await t.expect(FileCount).eql(2); @@ -88,7 +88,7 @@ test.meta("testID", "photos-upload-delete-001").meta({ type: "short", mode: "pub await menu.openPage("browse"); await toolbar.search("digikam"); await photo.checkPhotoVisibility(UploadedPhoto, false); - await t.navigateTo("/library/files/2020/10"); + await t.navigateTo("/library/index/files/2020/10"); const FileCountAfterDelete = await originals.getFileCount(); await t.expect(FileCountAfterDelete).eql(0); @@ -123,7 +123,7 @@ test.meta("testID", "photos-upload-delete-002").meta({ mode: "public" })( await t.expect(PhotoCountAfterUpload).eql(1); const UploadedPhoto = await photo.getNthPhotoUid("all", 0); - await t.navigateTo("/library/files/2020/06"); + await t.navigateTo("/library/index/files/2020/06"); const FileCount = await originals.getFileCount(); await t.expect(FileCount).eql(1); @@ -157,7 +157,7 @@ test.meta("testID", "photos-upload-delete-002").meta({ mode: "public" })( await menu.openPage("browse"); await toolbar.search("korn"); await photo.checkPhotoVisibility(UploadedPhoto, false); - await t.navigateTo("/library/files/2020/06"); + await t.navigateTo("/library/index/files/2020/06"); const FileCountAfterDelete = await originals.getFileCount(); await t.expect(FileCountAfterDelete).eql(0);