Skip to content

Commit

Permalink
test(cypress): More specific selector for viewer header in links test
Browse files Browse the repository at this point in the history
Fixes failing cypress test "link bubble -> closes the link bubble when
clicking elsewhere".

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- authored and backportbot[bot] committed Nov 5, 2024
1 parent 51d71ca commit 1821ce8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/nodes/Links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ describe('test link marks', function() {
.find('.widget-default--name')
.contains('Nextcloud')

cy.get('[role="dialog"] h2.modal-header__name').click()
cy.get('[role="dialog"] h2.modal-header__name')
.contains(fileName)
.click()

cy.get('.link-view-bubble .widget-default')
.should('not.exist')
Expand Down

0 comments on commit 1821ce8

Please sign in to comment.