Skip to content

Commit bc5ca91

Browse files
committed
test(cy): Fix selectors for paragraphs in cypress tests
Signed-off-by: Jonas <jonas@freesources.org>
1 parent 93d545f commit bc5ca91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cypress/e2e/nodes/PreviewOptions.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ describe('Preview Options', function() {
4242
})
4343

4444
it('should Remove link', function() {
45-
cy.get('.paragraph-content').should('have.text', 'nextcloud.com')
45+
cy.get('p > a').should('have.text', 'nextcloud.com')
4646
cy.get('.action-button__text').contains('Remove link').click()
47-
cy.get('.paragraph-content').should('not.have.text', 'nextcloud.com')
47+
cy.get('p > a').should('not.exist')
4848
})
4949
})

0 commit comments

Comments
 (0)