Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test(cypress): Fix selector for new button in files app
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 <[email protected]>
  • Loading branch information
mejo- committed Jun 4, 2024
commit a987648643e6f018b1a42336e31f7a59e61f749a
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,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