From 6c59b3a69538dd07f53f4e743842fca841a78728 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 a7a39f0c684..7b2945283e9 100644 --- a/cypress/e2e/nodes/PreviewOptions.spec.js +++ b/cypress/e2e/nodes/PreviewOptions.spec.js @@ -42,8 +42,8 @@ describe('Preview Options', function() { }) it('should Remove link', function() { - cy.get('.paragraph-content').should('have.text', 'nextcloud.com') + cy.get('p').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').should('not.have.text', 'nextcloud.com') }) })