Skip to content

Commit

Permalink
Merge pull request #6343 from nextcloud/backport/6179/stable29
Browse files Browse the repository at this point in the history
[stable29] ci: Fix selector for viewer modal name
  • Loading branch information
juliusknorr authored Sep 13, 2024
2 parents 1b76944 + 18b9635 commit b7e09b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/nodes/Links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('test link marks', function() {
.find('.widget-default--name')
.contains('Nextcloud')

cy.get('[role="dialog"] h2.modal-name').click()
cy.get('[role="dialog"] h2.modal-header__name').click()

cy.get('.link-view-bubble .widget-default')
.should('not.exist')
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('test link marks', function() {
cy.getFile(fileName)
.then($el => {
checkLinkFile(fileName)
cy.get('.modal-name').should('include.text', fileName)
cy.get('.modal-header__name').should('include.text', fileName)
})
})
it('with selected text', () => {
Expand All @@ -225,7 +225,7 @@ describe('test link marks', function() {
.then($el => {
cy.getContent().type(`${text}{selectAll}`)
checkLinkFile(fileName, text)
cy.get('.modal-name').should('include.text', fileName)
cy.get('.modal-header__name').should('include.text', fileName)
})
})
it('link to directory', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/viewer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Open test.md in viewer', function() {
.and('have.class', 'modal-mask')
.and('not.have.class', 'icon-loading')
getViewer()
.find('.modal-name').should('contain', 'test.md')
.find('.modal-header__name').should('contain', 'test.md')
getViewer()
.find('.modal-header button.action-item__menutoggle')
.should('be.visible')
Expand All @@ -72,7 +72,7 @@ describe('Open test.md in viewer', function() {
.and('have.class', 'modal-mask')
.and('not.have.class', 'icon-loading')
getViewer()
.find('.modal-name').should('contain', 'empty.md')
.find('.modal-header__name').should('contain', 'empty.md')
getViewer()
.find('.modal-header button.action-item__menutoggle')
.should('be.visible')
Expand Down

0 comments on commit b7e09b6

Please sign in to comment.