From 18b9635d24e707b4ac5a032641a0e89f457b4856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 7 Aug 2024 09:54:18 +0200 Subject: [PATCH] ci: Fix selector for viewer modal name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/nodes/Links.spec.js | 6 +++--- cypress/e2e/viewer.spec.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/nodes/Links.spec.js b/cypress/e2e/nodes/Links.spec.js index 505ab0da3e8..c1b0dfaaeb9 100644 --- a/cypress/e2e/nodes/Links.spec.js +++ b/cypress/e2e/nodes/Links.spec.js @@ -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') @@ -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', () => { @@ -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', () => { diff --git a/cypress/e2e/viewer.spec.js b/cypress/e2e/viewer.spec.js index 640f61b1c34..4a640ae5e7c 100644 --- a/cypress/e2e/viewer.spec.js +++ b/cypress/e2e/viewer.spec.js @@ -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') @@ -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')