Skip to content

Commit fb0a8ce

Browse files
committed
tests(links): ignore link bubble when reading link text
The link bubble now also gets rendered when the cursor is behind the link. `cy.get` will always start at the root of the doc. So it also found the link inside the link bubble. Use `.find` on the content instead as the link bubble is outside of that. Signed-off-by: Max <[email protected]>
1 parent c2fd1e5 commit fb0a8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/e2e/nodes/Links.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('test link marks', function() {
148148
cy.getSubmenuEntry('insert-link', 'insert-link-website').click()
149149
cy.getActionSubEntry('insert-link-input').find('input[type="text"]').type(`${url}{enter}`)
150150
cy.getContent()
151-
.get(`a[href*="${url}"]`)
151+
.find(`a[href*="${url}"]`)
152152
.should('have.text', text) // ensure correct text used
153153
.click({ force: true })
154154
}

0 commit comments

Comments
 (0)