Skip to content

Commit

Permalink
ci(cypress): Fix selectors for new file picker
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 14, 2023
1 parent 2ac6df3 commit ad6d3bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/cardFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ describe('Card', function() {
cy.get('button.icon-upload').should('be.visible')
cy.get('button.icon-folder').should('be.visible')
.click()
cy.get('.oc-dialog #picker-filestable tr[data-entryname="welcome.txt"] td.filename').should('be.visible')
cy.get('.file-picker__main').should('be.visible')
cy.get('.file-picker__main .file-picker__file-name[title="welcome.txt"]').should('be.visible')
.click()
cy.get('.oc-dialog button.primary').click()
cy.get('.dialog__actions button.button-vue--vue-primary').click()
cy.get('.attachment-list .basename').contains('welcome.txt')
})

Expand Down

0 comments on commit ad6d3bf

Please sign in to comment.