mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-02 05:33:49 +00:00
Minor (cypress): fixed failing cypress for custom metric (#14367)
This commit is contained in:
parent
89a861ea54
commit
bc4d048f5d
@ -93,7 +93,7 @@ const createCustomMetric = ({
|
||||
.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
|
||||
cy.get('[data-testid="heading"]').should('be.visible');
|
||||
@ -113,7 +113,7 @@ const createCustomMetric = ({
|
||||
|
||||
// Click on create custom metric button
|
||||
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();
|
||||
|
||||
validateForm(isColumnMetric);
|
||||
|
@ -268,7 +268,7 @@ const ColumnProfileTable = () => {
|
||||
const addButtonContent = [
|
||||
{
|
||||
label: <TabsLabel id="test-case" name={t('label.test-case')} />,
|
||||
key: '1',
|
||||
key: 'test-case',
|
||||
onClick: () => {
|
||||
history.push({
|
||||
pathname: getAddDataQualityTableTestPath(
|
||||
@ -280,8 +280,8 @@ const ColumnProfileTable = () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
label: <TabsLabel id="metric" name={t('label.custom-metric')} />,
|
||||
key: '2',
|
||||
label: <TabsLabel id="custom-metric" name={t('label.custom-metric')} />,
|
||||
key: 'custom-metric',
|
||||
onClick: () => {
|
||||
history.push({
|
||||
pathname: getAddCustomMetricPath(
|
||||
|
Loading…
x
Reference in New Issue
Block a user