Skip to content

Commit

Permalink
Merge pull request #4846 from nextcloud/ci/cypress-delete
Browse files Browse the repository at this point in the history
ci(cypress): Fix failing cypress spec by more specific selector
  • Loading branch information
mejo- authored Oct 11, 2023
2 parents eb1d555 + 46acd67 commit 7109fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Cypress.Commands.add('getFile', fileName => {
})

Cypress.Commands.add('deleteFile', fileName => {
cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"] .files-list__row-actions button`).click()
cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"] .files-list__row-actions .action-item__menutoggle`).click()
cy.get('.files-list__row-action-delete:visible button').click()
cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"]`).should('not.exist')
})
Expand Down

0 comments on commit 7109fc1

Please sign in to comment.