diff --git a/openmetadata-ui/src/main/resources/ui/cypress/integration/AddNewService/addServices.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/integration/AddNewService/addServices.spec.js index 90e05bfe457..80027a700af 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/integration/AddNewService/addServices.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/integration/AddNewService/addServices.spec.js @@ -57,7 +57,15 @@ const testServiceCreationAndIngestion = ( cy.get('[data-testid="schema-filter-pattern-checkbox"]').should('be.visible'); cy.get('[data-testid="add-ingestion-container"]').should('be.visible'); + // Set all the sliders to off to disable sample data, data profiler etc. + cy.get('[data-testid="toggle-button-ingest-sample-data"]') + .should('exist') + .click(); + cy.get('[data-testid="toggle-button-data-profiler"]').should('exist').click(); + cy.get('[data-testid="toggle-button-mark-deleted"]').should('exist').click(); + addIngestionInput(); + cy.get('[data-testid="next-button"]').should('exist').click(); // Configure DBT Model @@ -84,24 +92,26 @@ const testServiceCreationAndIngestion = ( // wait for ingestion to run cy.clock(); - cy.wait(30000); + cy.wait(10000); cy.get('[data-testid="view-service-button"]').should('be.visible'); cy.get('[data-testid="view-service-button"]').click(); // ingestions page + const retryTimes = 15; + let retryCount = 0; const testIngestionsTab = () => { cy.get('[data-testid="Ingestions"]').should('be.visible'); cy.get('[data-testid="Ingestions"] >> [data-testid="filter-count"]').should( 'have.text', 1 ); - cy.get('[data-testid="Ingestions"]').click(); + // click on the tab only for the first time + if (retryCount === 0) { + cy.get('[data-testid="Ingestions"]').click(); + } cy.get('[data-testid="add-new-ingestion-button"]').should('be.visible'); }; - - const retryTimes = 10; - let retryCount = 0; const checkSuccessState = () => { testIngestionsTab(); retryCount++; @@ -209,7 +219,7 @@ describe('login with SSO', () => { cy.get('[data-testid="schema-filter-pattern-checkbox"]').check(); cy.get('[data-testid="filter-pattern-includes-schema"]') .should('be.visible') - .type('testschema'); + .type('TESTSCHEMA'); }; testServiceCreationAndIngestion( diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/ConfigureIngestion.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/ConfigureIngestion.tsx index d1bf35ce71e..93240b13772 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/ConfigureIngestion.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AddIngestion/Steps/ConfigureIngestion.tsx @@ -81,6 +81,7 @@ const ConfigureIngestion = ({

@@ -94,6 +95,7 @@ const ConfigureIngestion = ({

@@ -108,6 +110,7 @@ const ConfigureIngestion = ({

@@ -121,6 +124,7 @@ const ConfigureIngestion = ({

Enable debug logging

@@ -137,6 +141,7 @@ const ConfigureIngestion = ({ handleMarkDeletedTables(); } }} + testId="mark-deleted" />

diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/toggle-switch/ToggleSwitchV1.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/toggle-switch/ToggleSwitchV1.tsx index 24c8e92b5d4..e4840867042 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/toggle-switch/ToggleSwitchV1.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/toggle-switch/ToggleSwitchV1.tsx @@ -17,13 +17,20 @@ import React from 'react'; interface ToggleSwitchV1Props { checked: boolean; handleCheck: () => void; + testId?: string; } -const ToggleSwitchV1 = ({ checked, handleCheck }: ToggleSwitchV1Props) => { +const ToggleSwitchV1 = ({ + checked, + handleCheck, + testId, +}: ToggleSwitchV1Props) => { + const id = testId ? `toggle-button-${testId}` : 'toggle-button'; + return (