From 53d1e08d087391bda40b40edc08c946fc61d5260 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 25 Sep 2023 17:04:37 +0200 Subject: [PATCH] Fix wait for request logic in e2e tests Signed-off-by: Louis Chemineau --- cypress/e2e/albumsUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/albumsUtils.ts b/cypress/e2e/albumsUtils.ts index 324209c14..6793515b6 100644 --- a/cypress/e2e/albumsUtils.ts +++ b/cypress/e2e/albumsUtils.ts @@ -47,10 +47,10 @@ export function addFilesToAlbumFromTimeline(albumName: string) { cy.intercept({ times: 1, method: 'PROPFIND', url: '**/dav/photos/**/albums/' }).as('propFindAlbums') cy.intercept({ times: 1, method: 'PROPFIND', url: '**/dav/photos/**/sharedalbums/' }).as('propFindSharedAlbums') cy.contains('Add to album').click() - cy.get('.album-picker ul').contains(albumName).click() - cy.wait('@copy') cy.wait('@propFindAlbums') cy.wait('@propFindSharedAlbums') + cy.get('.album-picker ul').contains(albumName).click() + cy.wait('@copy') } export function addFilesToAlbumFromAlbum(albumName: string, itemsIndex: number[]) {