mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-02 13:43:22 +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();
|
.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);
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user