diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts index 6cac366b519..2f8a9e37ddf 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts @@ -227,7 +227,7 @@ const fillForm = (formObj, type) => { cy.get('[data-testid="add-experts"]').scrollIntoView().click(); verifyResponseStatusCode('@getUsers', 200); cy.get('[data-testid="loader"]').should('not.exist'); - + interceptURL( 'GET', `api/v1/search/query?q=*${encodeURI(formObj.experts)}*`, 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 da1ede858e7..edcf6a2302f 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 @@ -88,6 +88,7 @@ export const addOwner = ( .click({ waitForAnimations: false }); verifyResponseStatusCode('@getUsers', 200); + cy.get('[data-testid="loader"]').should('not.exist'); interceptURL( 'GET', `api/v1/search/query?q=*&index=user_search_index*`, @@ -113,12 +114,11 @@ export const addOwner = ( }; export const updateOwner = (ownerName: string, dataTestId?: string) => { - interceptURL('GET', '/api/v1/users?*isBot=false*', 'getUsers'); cy.get('[data-testid="edit-owner"]').click(); cy.get("[data-testid='select-owner-tabs']").should('be.visible'); cy.get('.ant-tabs [id*=tab-users]').click(); - - verifyResponseStatusCode('@getUsers', 200); + + cy.get('[data-testid="loader"]').should('not.exist'); interceptURL( 'GET', `api/v1/search/query?q=*${encodeURI(ownerName)}*&index=user_search_index`, diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/QueryEntity.spec.ts b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/QueryEntity.spec.ts index 21e39184548..98d1cb96636 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/QueryEntity.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/QueryEntity.spec.ts @@ -183,6 +183,7 @@ describe('Query Entity', { tags: 'DataAssets' }, () => { // Update owner cy.get(':nth-child(2) > [data-testid="edit-owner"]').click(); verifyResponseStatusCode('@getUsers', 200); + cy.get('[data-testid="loader"]').should('not.exist'); interceptURL( 'GET', `api/v1/search/query?q=*${encodeURI(DATA.owner)}*`, diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.test.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.test.tsx index fb7ba25df21..67c8a2fe71b 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.test.tsx @@ -204,4 +204,13 @@ describe('SignUp page', () => { expect(createUser as jest.Mock).toHaveBeenCalledTimes(0); }); + + it('should have username as hidden field', async () => { + render(); + + const usernameInput = screen.getByTestId('username-label'); + usernameInput.parentElement?.parentElement; + + expect(usernameInput.parentElement).toHaveClass('ant-form-item-hidden'); + }); }); diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.tsx index 0a516fe1839..9a677ff42e6 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/SignUp/SignUpPage.tsx @@ -163,6 +163,7 @@ const SignUp = () => {