Skip to content

Commit

Permalink
Wait for request when we rename an album in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Sep 26, 2023
1 parent e6fe009 commit 7a56c55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/albums.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ describe('Manage albums', () => {
cy.get('[aria-label="Open actions menu"]').click()
cy.contains('Edit album details').click()
cy.get('form [name="name"]').clear().type('New name')
cy.intercept({ times: 1, method: 'MOVE', url: '**/remote.php/dav/photos/*/albums/albums_test' }).as('renameRequest')
cy.contains('Save').click()

cy.wait('@renameRequest')
cy.reload()

cy.contains('New name')
Expand Down

0 comments on commit 7a56c55

Please sign in to comment.