diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsightSettings.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsightSettings.spec.js
new file mode 100644
index 00000000000..02d9635ed5b
--- /dev/null
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsightSettings.spec.js
@@ -0,0 +1,249 @@
+/*
+ * Copyright 2023 Collate.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { interceptURL, verifyResponseStatusCode } from '../../common/common';
+import { BASE_URL } from '../../constants/constants';
+
+const PIPELINE_NAME = 'cypress_dataInsight_pipeline';
+const REGION_NAME = 'US';
+
+describe('Data Insight settings page should work properly', () => {
+ beforeEach(() => {
+ cy.login();
+ interceptURL('GET', '/api/v1/teams/name/*', 'settingsPage');
+
+ cy.get('[data-testid="appbar-item-settings"]').click();
+ verifyResponseStatusCode('@settingsPage', 200);
+ cy.get('[data-testid="settings-left-panel"]').should('be.visible');
+
+ interceptURL(
+ 'GET',
+ 'api/v1/services/ingestionPipelines?fields=pipelineStatuses&service=OpenMetadata&pipelineType=dataInsight',
+ 'ingestionPipelines'
+ );
+ interceptURL(
+ 'GET',
+ '/api/v1/services/ingestionPipelines/OpenMetadata.OpenMetadata_dataInsight/pipelineStatus?startTs=*',
+ 'pipelineStatus'
+ );
+
+ cy.get(`[data-menu-id*="openMetadata.dataInsight"]`)
+ .scrollIntoView()
+ .click();
+
+ verifyResponseStatusCode('@ingestionPipelines', 200);
+ verifyResponseStatusCode('@pipelineStatus', 200);
+ });
+
+ it('Add data insight pipeline should work properly', () => {
+ interceptURL(
+ 'GET',
+ '/api/v1/services/metadataServices/name/OpenMetadata',
+ 'serviceDetails'
+ );
+
+ cy.get('[data-testid="add-new-ingestion-button"]').click();
+
+ verifyResponseStatusCode('@serviceDetails', 200);
+
+ cy.get('[data-testid="name"]').clear().type(PIPELINE_NAME);
+
+ cy.get('[data-testid="next-button"]').click();
+
+ cy.get('#root\\/regionName').type(REGION_NAME);
+
+ cy.get('#root\\/useAwsCredentials').click({ waitForAnimations: true });
+
+ cy.get('#root\\/useAwsCredentials')
+ .invoke('attr', 'aria-checked')
+ .should('eq', 'true');
+
+ cy.get('[data-testid="next-button"]').click();
+
+ interceptURL(
+ 'POST',
+ '/api/v1/services/ingestionPipelines',
+ 'postIngestionPipeline'
+ );
+
+ cy.get('[data-testid="deploy-button"]').click();
+
+ cy.wait('@postIngestionPipeline').then(({ request, response }) => {
+ expect(request.body.sourceConfig.config).to.deep.equal({
+ regionName: 'US',
+ useAwsCredentials: true,
+ useSSL: false,
+ verifyCerts: false,
+ type: 'MetadataToElasticSearch',
+ });
+ expect(request.body.loggerLevel).to.equal('INFO');
+
+ expect(response.statusCode).to.equal(201);
+ });
+
+ cy.get('[data-testid="view-service-button"]').click();
+
+ verifyResponseStatusCode('@ingestionPipelines', 200);
+ verifyResponseStatusCode('@pipelineStatus', 200);
+
+ cy.get(`[data-row-key="${PIPELINE_NAME}"]`).should('be.visible');
+ });
+
+ it('Edit data insight pipeline should work properly', () => {
+ interceptURL(
+ 'GET',
+ '/api/v1/services/metadataServices/name/OpenMetadata',
+ 'serviceDetails'
+ );
+
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="edit"]`).click();
+
+ verifyResponseStatusCode('@serviceDetails', 200);
+
+ cy.get('#root\\/loggerLevel').click({ waitForAnimations: true });
+
+ cy.get('#root\\/loggerLevel')
+ .invoke('attr', 'aria-checked')
+ .should('eq', 'true');
+
+ cy.get('[data-testid="next-button"]').click();
+
+ cy.get('#root\\/useSSL').click({ waitForAnimations: true });
+
+ cy.get('#root\\/useSSL')
+ .invoke('attr', 'aria-checked')
+ .should('eq', 'true');
+
+ cy.get('[data-testid="next-button"]').click();
+
+ interceptURL(
+ 'PUT',
+ '/api/v1/services/ingestionPipelines',
+ 'putIngestionPipeline'
+ );
+
+ cy.get('[data-testid="deploy-button"]').click();
+
+ cy.wait('@putIngestionPipeline').then(({ request, response }) => {
+ expect(request.body.sourceConfig.config).to.deep.equal({
+ regionName: 'US',
+ useAwsCredentials: true,
+ useSSL: true,
+ verifyCerts: false,
+ type: 'MetadataToElasticSearch',
+ });
+ expect(request.body.loggerLevel).to.equal('DEBUG');
+
+ expect(response.statusCode).to.equal(200);
+ });
+
+ cy.get('[data-testid="view-service-button"]').click();
+
+ verifyResponseStatusCode('@ingestionPipelines', 200);
+ verifyResponseStatusCode('@pipelineStatus', 200);
+
+ cy.get(`[data-row-key="${PIPELINE_NAME}"]`).should('be.visible');
+ });
+
+ it('Run and kill data insight pipeline should work properly', () => {
+ interceptURL(
+ 'POST',
+ '/api/v1/services/ingestionPipelines/trigger/*',
+ 'runPipelineDag'
+ );
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="run"]`).click();
+
+ verifyResponseStatusCode('@runPipelineDag', 200);
+ interceptURL(
+ 'POST',
+ '/api/v1/services/ingestionPipelines/kill/*',
+ 'killPipelineDag'
+ );
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="kill"]`).click();
+
+ cy.get('[data-testid="kill-modal"]').contains('Confirm').click();
+
+ verifyResponseStatusCode('@killPipelineDag', 200);
+ });
+
+ it('Re deploy data insight pipeline should work properly', () => {
+ interceptURL(
+ 'POST',
+ '/api/v1/services/ingestionPipelines/deploy/*',
+ 'reDeployPipelineDag'
+ );
+ cy.get(
+ `[data-row-key="${PIPELINE_NAME}"] [data-testid="re-deploy-btn"]`
+ ).click();
+
+ verifyResponseStatusCode('@reDeployPipelineDag', 200);
+ });
+
+ it('Pause and unpause data insight pipeline should work properly', () => {
+ interceptURL(
+ 'POST',
+ '/api/v1/services/ingestionPipelines/toggleIngestion/*',
+ 'togglePipelineDag'
+ );
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="pause"]`).click();
+
+ verifyResponseStatusCode('@togglePipelineDag', 200);
+
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="unpause"]`).click();
+
+ verifyResponseStatusCode('@togglePipelineDag', 200);
+ });
+
+ it('Logs action button for the data insight pipeline should redirect to the logs page', () => {
+ interceptURL(
+ 'GET',
+ `/api/v1/services/ingestionPipelines/name/OpenMetadata.${PIPELINE_NAME}?fields=owner,pipelineStatuses`,
+ 'getServiceDetails'
+ );
+ interceptURL(
+ 'GET',
+ '/api/v1/services/ingestionPipelines/logs/*/*last?after=',
+ 'getLogs'
+ );
+ interceptURL(
+ 'GET',
+ `/api/v1/services/ingestionPipelines/OpenMetadata.cypress_dataInsight_pipeline/pipelineStatus?*`,
+ 'getPipelineStatus'
+ );
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="logs"]`).click();
+
+ verifyResponseStatusCode('@getServiceDetails', 200);
+ verifyResponseStatusCode('@getLogs', 200);
+ verifyResponseStatusCode('@getPipelineStatus', 200);
+
+ cy.url().should(
+ 'eq',
+ `${BASE_URL}/metadataServices/OpenMetadata.${PIPELINE_NAME}/logs`
+ );
+ });
+
+ it('Delete data insight pipeline should work properly', () => {
+ interceptURL(
+ 'DELETE',
+ '/api/v1/services/ingestionPipelines/*?hardDelete=true',
+ 'deletePipelineDag'
+ );
+ cy.get(`[data-row-key="${PIPELINE_NAME}"] [data-testid="delete"]`).click();
+
+ cy.get('[data-testid="confirmation-text-input"]').type('DELETE');
+
+ cy.get('[data-testid="confirm-button"]').click();
+
+ verifyResponseStatusCode('@deletePipelineDag', 200);
+ });
+});
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.js
index 96a23c47d17..5a6c8a6321d 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.js
@@ -357,12 +357,25 @@ describe('Teams flow should work properly', () => {
`/api/v1/teams/name/${TEAM_DETAILS.name}*`,
'getSelectedTeam'
);
+ interceptURL(
+ 'GET',
+ `/api/v1/teams?limit=100000&parentTeam=${TEAM_DETAILS.name}&include=all`,
+ 'getTeamParent'
+ );
+ interceptURL(
+ 'GET',
+ `/api/v1/teams?fields=userCount%2CchildrenCount%2Cowns%2Cparents&limit=100000&parentTeam=${TEAM_DETAILS.name}&include=all`,
+ 'getChildrenCount'
+ );
cy.get('table').should('contain', TEAM_DETAILS.name).click();
cy.get('table').find('.ant-table-row').contains(TEAM_DETAILS.name).click();
verifyResponseStatusCode('@getSelectedTeam', 200);
+ verifyResponseStatusCode('@getTeamParent', 200);
+ verifyResponseStatusCode('@getChildrenCount', 200);
+
cy.get('[data-testid="team-heading"]')
.should('be.visible')
.contains(TEAM_DETAILS.updatedname);
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/DataInsightMetadataToESConfigForm/DataInsightMetadataToESConfigForm.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/DataInsightMetadataToESConfigForm/DataInsightMetadataToESConfigForm.tsx
index 389b0f1e8f1..31b82ae4281 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/DataInsightMetadataToESConfigForm/DataInsightMetadataToESConfigForm.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/DataInsightMetadataToESConfigForm/DataInsightMetadataToESConfigForm.tsx
@@ -118,12 +118,12 @@ const DataInsightMetadataToESConfigForm = ({
-