Skip to content

Commit c863d53

Browse files
mejo-backportbot[bot]
authored andcommitted
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 <jonas@freesources.org>
1 parent d0e179d commit c863d53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ Cypress.Commands.add('createDescription', (buttonLabel = 'Add folder description
414414
.as('addDescription')
415415

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

420420
cy.wait('@addDescription')

0 commit comments

Comments
 (0)