From ed913d5b6888916e101619bbc201349524a5e26c Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 5 Nov 2024 10:33:45 +0100 Subject: [PATCH] test(cypress): More specific selector for viewer header in links test Fixes failing cypress test "link bubble -> closes the link bubble when clicking elsewhere". Signed-off-by: Jonas --- cypress/e2e/nodes/Links.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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')