зеркало из https://github.com/nextcloud/text.git
Merge pull request #6179 from nextcloud/fix/viewer-title-selector
ci: Fix selector for viewer modal name
This commit is contained in:
Коммит
2996339698
|
@ -68,7 +68,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')
|
||||
|
@ -219,7 +219,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', () => {
|
||||
|
@ -230,7 +230,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', () => {
|
||||
|
|
|
@ -31,7 +31,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')
|
||||
|
@ -55,7 +55,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')
|
||||
|
|
Загрузка…
Ссылка в новой задаче