Fix the AdditionalRuleSearch spec flakiness for AUT (#17129)

This commit is contained in:
Aniket Katkar 2024-07-25 18:19:42 +05:30 committed by GitHub
parent befacea384
commit 70f0268e26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',