Minor (cypress): fixed failing cypress for custom metric (#14367)

This commit is contained in:
Shailesh Parmar 2023-12-13 14:18:27 +05:30 committed by GitHub
parent 89a861ea54
commit bc4d048f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ const createCustomMetric = ({
.click(); .click();
} }
cy.get('[data-testid="profiler-add-table-test-btn"]').click(); cy.get('[data-testid="profiler-add-table-test-btn"]').click();
cy.get('[data-testid="metric"]').click(); cy.get('[data-testid="custom-metric"]').click();
// validate redirection and cancel button // validate redirection and cancel button
cy.get('[data-testid="heading"]').should('be.visible'); cy.get('[data-testid="heading"]').should('be.visible');
@ -113,7 +113,7 @@ const createCustomMetric = ({
// Click on create custom metric button // Click on create custom metric button
cy.get('[data-testid="profiler-add-table-test-btn"]').click(); cy.get('[data-testid="profiler-add-table-test-btn"]').click();
cy.get('[data-testid="metric"]').click(); cy.get('[data-testid="custom-metric"]').click();
cy.get('[data-testid="submit-button"]').click(); cy.get('[data-testid="submit-button"]').click();
validateForm(isColumnMetric); validateForm(isColumnMetric);

View File

@ -268,7 +268,7 @@ const ColumnProfileTable = () => {
const addButtonContent = [ const addButtonContent = [
{ {
label: <TabsLabel id="test-case" name={t('label.test-case')} />, label: <TabsLabel id="test-case" name={t('label.test-case')} />,
key: '1', key: 'test-case',
onClick: () => { onClick: () => {
history.push({ history.push({
pathname: getAddDataQualityTableTestPath( pathname: getAddDataQualityTableTestPath(
@ -280,8 +280,8 @@ const ColumnProfileTable = () => {
}, },
}, },
{ {
label: <TabsLabel id="metric" name={t('label.custom-metric')} />, label: <TabsLabel id="custom-metric" name={t('label.custom-metric')} />,
key: '2', key: 'custom-metric',
onClick: () => { onClick: () => {
history.push({ history.push({
pathname: getAddCustomMetricPath( pathname: getAddCustomMetricPath(