Update the selector to avoid flakiness (#17099)

This commit is contained in:
Aniket Katkar 2024-07-19 20:55:36 +05:30 committed by GitHub
parent 8434fe2c50
commit d52db7735b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,7 +387,7 @@ export const checkAddGroupWithOperator = ({
// Click on field dropdown
cy.get('.rule--field').eq(index_2).scrollIntoView().click();
cy.get(fieldId).eq(2).scrollIntoView().click();
cy.get(`.ant-select-dropdown:visible ${fieldId}`).scrollIntoView().click();
// Select the condition
cy.get('.rule--operator').eq(index_2).scrollIntoView().click();