Skip to content

Commit

Permalink
Fix wait for request logic in e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Sep 25, 2023
1 parent 0f0cd60 commit 53d1e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/albumsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) {
Expand Down

0 comments on commit 53d1e08

Please sign in to comment.