Skip to content

Commit

Permalink
test(cy): Fix selectors for paragraphs in cypress tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Sep 23, 2024
1 parent 859c366 commit 54f13b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/nodes/PreviewOptions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})

0 comments on commit 54f13b4

Please sign in to comment.