From 2eacd1bfbe53c48342d8556d445bcf525247eb43 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 0bcf40d6f64..0f24e27693b 100644 --- a/cypress/e2e/nodes/Links.spec.js +++ b/cypress/e2e/nodes/Links.spec.js @@ -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')