diff --git a/cypress/e2e/nodes/Links.spec.js b/cypress/e2e/nodes/Links.spec.js index d5fddbc7e90..c9e0d886ad3 100644 --- a/cypress/e2e/nodes/Links.spec.js +++ b/cypress/e2e/nodes/Links.spec.js @@ -62,7 +62,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')