diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js index 1ee6cb9d99d..b5c5c25bd38 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js @@ -213,11 +213,9 @@ export const visitEntityTab = (id) => { * @param {string} term Entity name */ export const searchEntity = (term) => { - cy.get('[data-testid="searchBox"]').should('be.visible'); - cy.get('[data-testid="searchBox"]') - .scrollIntoView() - .type(`${term}{enter}{enter}`); - cy.get('.tw-cursor-pointer > [data-testid="image"]').click(); + cy.get('[data-testid="searchBox"]').scrollIntoView().should('be.visible'); + cy.get('[data-testid="searchBox"]').type(`${term}{enter}`); + cy.get('[data-testid="suggestion-overlay"]').click(1,1); }; // add new tag to entity and its table diff --git a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js index 949fbe67ae5..8d7a57c61c4 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js @@ -32,7 +32,7 @@ describe('Entity Details Page', () => { // click on the 1st result and go to manage tab in entity details page cy.wait(500); cy.get('[data-testid="table-link"]').first().should('be.visible').click(); - cy.get('[data-testid="Manage"]').should('be.visible').click(); + cy.get('[data-testid="Manage"]').scrollIntoView().click(); // check for delete section and delete button is available or not cy.get('[data-testid="danger-zone"]').scrollIntoView().should('be.visible'); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx b/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx index d2fe63546a6..8f1196b1c4a 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx @@ -64,7 +64,7 @@ const Appbar: React.FC = (): JSX.Element => { }); const searchQuery = match?.params?.searchQuery; const [searchValue, setSearchValue] = useState(searchQuery); - const [isOpen, setIsOpen] = useState(true); + const [isOpen, setIsOpen] = useState(false); const [isFeatureModalOpen, setIsFeatureModalOpen] = useState(false); const [version, setVersion] = useState(''); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Suggestions.tsx b/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Suggestions.tsx index 9b24c334fd7..3433d0b2078 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Suggestions.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Suggestions.tsx @@ -302,7 +302,7 @@ const Suggestions = ({ searchText, isOpen, setIsOpen }: SuggestionProp) => { } }, [searchText]); - // alwyas Keep this useEffect at the end... + // always Keep this useEffect at the end... useEffect(() => { isMounting.current = false; }, []); @@ -313,6 +313,7 @@ const Suggestions = ({ searchText, isOpen, setIsOpen }: SuggestionProp) => { <>