Skip to content

Commit 141cc04

Browse files
juliusknorrmejo-
authored andcommitted
ci: Fix selector for viewer modal name
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent dcfea0e commit 141cc04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cypress/e2e/nodes/Links.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ describe('test link marks', function() {
160160
cy.getFile(fileName)
161161
.then($el => {
162162
checkLinkFile(fileName)
163-
cy.get('.modal-name').should('include.text', fileName)
163+
cy.get('.modal-header__name').should('include.text', fileName)
164164
})
165165
})
166166
it('with selected text', () => {
167167
cy.getFile(fileName)
168168
.then($el => {
169169
cy.getContent().type(`${text}{selectAll}`)
170170
checkLinkFile(fileName, text)
171-
cy.get('.modal-name').should('include.text', fileName)
171+
cy.get('.modal-header__name').should('include.text', fileName)
172172
})
173173
})
174174
it('link to directory', () => {

cypress/e2e/viewer.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Open test.md in viewer', function() {
4848
.and('have.class', 'modal-mask')
4949
.and('not.have.class', 'icon-loading')
5050
getViewer()
51-
.find('.modal-name').should('contain', 'test.md')
51+
.find('.modal-header__name').should('contain', 'test.md')
5252
getViewer()
5353
.find('.modal-header button.action-item__menutoggle')
5454
.should('be.visible')
@@ -72,7 +72,7 @@ describe('Open test.md in viewer', function() {
7272
.and('have.class', 'modal-mask')
7373
.and('not.have.class', 'icon-loading')
7474
getViewer()
75-
.find('.modal-name').should('contain', 'empty.md')
75+
.find('.modal-header__name').should('contain', 'empty.md')
7676
getViewer()
7777
.find('.modal-header button.action-item__menutoggle')
7878
.should('be.visible')

0 commit comments

Comments
 (0)