From c76c82637a673308a20bb0f0533df8123f2d4e09 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Mon, 5 Feb 2024 15:47:32 +0530 Subject: [PATCH] cypress: fixed cypress AUT failure for custom metric & data quality (#15025) --- .../resources/ui/cypress/e2e/Features/CustomMetric.spec.js | 4 ++-- .../ui/cypress/e2e/Pages/DataQualityAndProfiler.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/CustomMetric.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/CustomMetric.spec.js index 7ad840b47a0..46a41005248 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/CustomMetric.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Features/CustomMetric.spec.js @@ -204,8 +204,8 @@ const deleteCustomMetric = ({ interceptURL( 'DELETE', isColumnMetric - ? `/api/v1/tables/*/customMetric/${metric.column}/${metric.name}` - : `/api/v1/tables/*/customMetric/${metric.name}`, + ? `/api/v1/tables/*/customMetric/${metric.column}/${metric.name}*` + : `/api/v1/tables/*/customMetric/${metric.name}*`, 'deleteCustomMetric' ); visitEntityDetailsPage({ diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.spec.js index 361d234bf41..988186f6be1 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.spec.js @@ -714,7 +714,7 @@ describe('Data Quality and Profiler should work properly', () => { .contains('Data Quality') .click(); - cy.get(`[data-testid="${testCaseName}"]`).click(); + cy.get(`[data-testid="${testCaseName}"]`).contains(testCaseName).click(); verifyResponseStatusCode('@getTestCaseDetails', 200); cy.wait('@getTestResult').then(() => { cy.get(`[id="${testCaseName}_graph"]`)