Skip to content

Commit

Permalink
test(cypress): Fix selector for new button in files app
Browse files Browse the repository at this point in the history
Make it more specific to only select the button in breadcrumbs. In empty
folders, there's a similar button in the emptycontent now.

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- authored and max-nextcloud committed Jun 11, 2024
1 parent c5d166a commit 747122c
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 @@ -414,7 +414,7 @@ Cypress.Commands.add('createDescription', (buttonLabel = 'Add folder description
.as('addDescription')

cy.get('[data-cy-files-list] tr[data-cy-files-list-row-name="Readme.md"]').should('not.exist')
cy.get('[data-cy-upload-picker] button.action-item__menutoggle').click()
cy.get('[data-cy-files-content-breadcrumbs] [data-cy-upload-picker] button.action-item__menutoggle').click()
cy.get('li.upload-picker__menu-entry button').contains(buttonLabel).click()

cy.wait('@addDescription')
Expand Down

0 comments on commit 747122c

Please sign in to comment.