diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsight.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsight.spec.js index 335541074b52..7ae3318ab563 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsight.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataInsight.spec.js @@ -111,7 +111,7 @@ describe('Data Insight feature', () => { interceptURL('GET', '/api/v1/apps?limit=*', 'apps'); interceptURL( 'GET', - '/api/v1/apps/name/DataInsightsApplication?fields=owner,pipelines', + '/api/v1/apps/name/DataInsightsApplication?*', 'dataInsightsApplication' ); interceptURL( @@ -128,7 +128,7 @@ describe('Data Insight feature', () => { cy.get('[data-menu-id*="integrations.apps"]').scrollIntoView().click(); verifyResponseStatusCode('@apps', 200); cy.get( - '[data-testid="data-insights-card"] [data-testid="config-btn"]' + '[data-testid="data-insights-application-card"] [data-testid="config-btn"]' ).click(); verifyResponseStatusCode('@dataInsightsApplication', 200); cy.get('[data-testid="deploy-button"]').click(); 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 index d547d1eece7b..77cc15de743f 100644 --- 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 @@ -46,7 +46,7 @@ describe('Data Insight settings page should work properly', () => { 'triggerPipeline' ); cy.get( - '[data-testid="data-insights-card"] [data-testid="config-btn"]' + '[data-testid="data-insights-application-card"] [data-testid="config-btn"]' ).click(); verifyResponseStatusCode('@getDataInsightDetails', 200); cy.get('[data-testid="deploy-button"]').click(); @@ -67,7 +67,7 @@ describe('Data Insight settings page should work properly', () => { ); interceptURL('PATCH', '/api/v1/apps/*', 'updateApplication'); cy.get( - '[data-testid="data-insights-card"] [data-testid="config-btn"]' + '[data-testid="data-insights-application-card"] [data-testid="config-btn"]' ).click(); verifyResponseStatusCode('@getDataInsightDetails', 200); cy.get('[data-testid="edit-button"]').click(); @@ -93,7 +93,7 @@ describe('Data Insight settings page should work properly', () => { 'deleteApplication' ); cy.get( - '[data-testid="data-insights-card"] [data-testid="config-btn"]' + '[data-testid="data-insights-application-card"] [data-testid="config-btn"]' ).click(); verifyResponseStatusCode('@getDataInsightDetails', 200); cy.get('[data-testid="manage-button"]').click(); @@ -101,16 +101,18 @@ describe('Data Insight settings page should work properly', () => { cy.get('[data-testid="save-button"]').click(); verifyResponseStatusCode('@deleteApplication', 200); verifyResponseStatusCode('@getApplications', 200); - cy.get('[data-testid="data-insights-card"]').should('not.exist'); + cy.get('[data-testid="data-insights-application-card"]').should( + 'not.exist' + ); }); it('Install application', () => { interceptURL('GET', '/api/v1/apps/marketplace?limit=*', 'getMarketPlace'); - interceptURL('POST', '/api/v1/apps/install', 'installApplication'); + interceptURL('POST', '/api/v1/apps', 'installApplication'); cy.get('[data-testid="add-application"]').click(); verifyResponseStatusCode('@getMarketPlace', 200); cy.get( - '[data-testid="data-insights-card"] [data-testid="config-btn"]' + '[data-testid="data-insights-application-card"] [data-testid="config-btn"]' ).click(); cy.get('[data-testid="install-application"]').click(); cy.get('[data-testid="save-button"]').click(); @@ -119,6 +121,8 @@ describe('Data Insight settings page should work properly', () => { cy.get('[data-testid="deploy-button"]').click(); verifyResponseStatusCode('@installApplication', 201); verifyResponseStatusCode('@getApplications', 200); - cy.get('[data-testid="data-insights-card"]').should('be.visible'); + cy.get('[data-testid="data-insights-application-card"]').should( + 'be.visible' + ); }); }); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Applications/ApplicationCard/ApplicationCard.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Applications/ApplicationCard/ApplicationCard.component.tsx index 2020d7d9c3df..366badc1542c 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Applications/ApplicationCard/ApplicationCard.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Applications/ApplicationCard/ApplicationCard.component.tsx @@ -39,7 +39,7 @@ const ApplicationCard = ({ className, 'application-card card-body-border-none' )} - data-testid={`${kebabCase(title)}-card`}> + data-testid={`${kebabCase(appName)}-card`}>