From 67ce990795cf89bdcf816b0ed956232c5e749ec4 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 18 Sep 2024 14:15:48 +0200 Subject: [PATCH] test(cy): Fix selectors for paragraphs in cypress tests Signed-off-by: Jonas --- cypress/e2e/nodes/PreviewOptions.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/nodes/PreviewOptions.spec.js b/cypress/e2e/nodes/PreviewOptions.spec.js index a684efc490c..d06bbf45868 100644 --- a/cypress/e2e/nodes/PreviewOptions.spec.js +++ b/cypress/e2e/nodes/PreviewOptions.spec.js @@ -57,8 +57,8 @@ describe('Preview Options', function() { }) it('should Remove link', function() { - cy.get('.paragraph-content').should('have.text', 'nextcloud.com') + cy.get('p > a').should('have.text', 'nextcloud.com') cy.get('.action-button__text').contains('Remove link').click() - cy.get('.paragraph-content').should('not.have.text', 'nextcloud.com') + cy.get('p > a').should('not.exist') }) })