From aeab83734823ade0e4e417a60cdf9566783769de Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 11 Mar 2025 12:44:44 +0100 Subject: [PATCH] test: refs #8581 rollback --- test/cypress/support/commands.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 6f0798134..137b61c4f 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -123,11 +123,8 @@ function selectItem(selector, option, ariaControl, hasWrite = true) { const val = typeof option == 'string' ? option.toLowerCase() : option; return item.innerText.toLowerCase().includes(val); }); - if (matchingItem) { - cy.wrap(matchingItem).click(); - cy.get('#' + ariaControl).should('not.exist'); - return; - } + if (matchingItem) return cy.wrap(matchingItem).click(); + if (hasWrite) cy.get(selector).clear().type(option); return selectItem(selector, option, ariaControl, false); });