From 8efa9e434448f0c9e8177784fa6f4804a6751a39 Mon Sep 17 00:00:00 2001 From: Karoline Tufte Lien Date: Mon, 7 Sep 2026 19:11:25 +0200 Subject: [PATCH] chore: gate the sharing dialog search box before typing `you change the sharing settings` clicked "Share view" and typed into the dialog's search box with nothing in between. The box is disabled while the dialog loads the object's sharing state, and `cy.type()` does not wait for that to clear - the CI error carries no "Timed out retrying" prefix, so it threw immediately rather than after the command timeout. `cy.get` retried only until the input existed, which it does while still disabled. Gate it with a retrying `should('be.enabled')` and scope the lookup to the dialog, the way the newer WorkingListsSharing step already does - the bare `[placeholder="Search"]` would match any search box on the page. This is the failure seen on `cypress (2.42, 5)` and, on another branch, on `cypress (2.43, 5)` - same scenario, same error, different version, so a race rather than anything version specific. Verified against play stable-2-43-1: both sharing scenarios pass with the gate in place. Co-Authored-By: Claude Opus 5 (1M context) --- cypress/e2e/WorkingLists/sharedSteps.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/WorkingLists/sharedSteps.js b/cypress/e2e/WorkingLists/sharedSteps.js index 5a4f48c094..003aa086b5 100644 --- a/cypress/e2e/WorkingLists/sharedSteps.js +++ b/cypress/e2e/WorkingLists/sharedSteps.js @@ -235,7 +235,10 @@ Then(/^you can load the view with the name ?(.*)$/, (name) => { When('you change the sharing settings', () => { cy.get('[data-test="list-view-menu-button"]').click(); cy.contains('Share view').click(); - cy.get('[placeholder="Search"]').type('Boateng'); + cy.get('[data-test="sharing-dialog"]') + .find('[placeholder="Search"]') + .should('be.enabled') + .type('Boateng'); cy.contains('Kevin Boateng').click(); cy.contains('Choose a level').click(); cy.contains('View and edit').click({ force: true });