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 <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Sep 4, 2023
1 parent 54cc67d commit 1e756e2
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 @@ -110,9 +110,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"]').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 1e756e2

Please sign in to comment.