From 70f0268e26c057e580c6a6bc7a30e889aa98d95f Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Thu, 25 Jul 2024 18:19:42 +0530 Subject: [PATCH] Fix the AdditionalRuleSearch spec flakiness for AUT (#17129) --- .../main/resources/ui/cypress/common/Utils/AdvancedSearch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/AdvancedSearch.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/AdvancedSearch.ts index 2d1ec353a31..2651b63f6e9 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/AdvancedSearch.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/AdvancedSearch.ts @@ -531,7 +531,9 @@ export const checkAddRuleWithOperator = ({ // Select the condition cy.get('.rule--operator').eq(index_2).scrollIntoView().click(); - cy.get(`[label="${condition_2}"]`).eq(index_2).scrollIntoView().click(); + cy.get(`.ant-select-dropdown:visible [label="${condition_2}"]`) + .scrollIntoView() + .click(); // Verify the condition cy.get('.rule--operator .ant-select-selection-item').should( 'contain',