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 backportbot[bot] committed Jun 4, 2024
1 parent d0e179d commit c863d53
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 c863d53

Please sign in to comment.