diff --git a/cypress/e2e/nodes/PreviewOptions.spec.js b/cypress/e2e/nodes/PreviewOptions.spec.js index a7a39f0c68..df0e22e86f 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 > 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') }) }) diff --git a/src/components/Editor/PreviewOptions.vue b/src/components/Editor/PreviewOptions.vue index 04a859e4b5..d2b02556eb 100644 --- a/src/components/Editor/PreviewOptions.vue +++ b/src/components/Editor/PreviewOptions.vue @@ -3,32 +3,31 @@ - SPDX-License-Identifier: AGPL-3.0-or-later -->