diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/AlertUtils.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/AlertUtils.ts index 4997fca2823..03153333ff2 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/AlertUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/AlertUtils.ts @@ -227,9 +227,7 @@ export const addInternalDestination = ( ).should('be.visible'); cy.get( `[data-testid="team-user-select-dropdown-${destinationNumber}"] [data-testid="search-input"]` - ) - .click() - .type(searchText); + ).type(searchText); // Added wait for debounce functionality cy.wait(600); verifyResponseStatusCode('@getSearchResult', 200); 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 e1510b775fd..5fc295523ec 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 @@ -237,9 +237,9 @@ export const searchForField = ( .type(searchCriteria); // checking filter is working - cy.get( - `.ant-select-item-option-active[title="${searchCriteria}"]` - ).should('be.visible'); + cy.get(`.ant-select-dropdown [title="${searchCriteria}"]`).should( + 'be.visible' + ); // select value from dropdown if (!isLocalSearch) { diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/Owner.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/Owner.ts index 111d0eb18f0..331c5f36b3c 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/Owner.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/Utils/Owner.ts @@ -131,9 +131,9 @@ export const removeOwner = (ownerName: string, dataTestId?: string) => { cy.get('[data-testid="select-owner-tabs"]').should('be.visible'); - cy.get( - '[data-testid="select-owner-tabs"] [data-testid="remove-owner"]' - ).click(); + cy.get('[data-testid="select-owner-tabs"] [data-testid="remove-owner"]') + .scrollIntoView() + .click(); verifyResponseStatusCode('@patchOwner', 200); cy.get(`[data-testid=${dataTestId ?? 'owner-link'}]`).should(