mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 18:48:35 +00:00 
			
		
		
		
	fix: mlflow cypress by adding model filter pattern (#12935)
This commit is contained in:
		
							parent
							
								
									c101b3c9d1
								
							
						
					
					
						commit
						642e526af1
					
				| @ -26,8 +26,8 @@ import { | |||||||
| 
 | 
 | ||||||
| const serviceType = 'Mlflow'; | const serviceType = 'Mlflow'; | ||||||
| const serviceName = `${serviceType}-ct-test-${uuid()}`; | const serviceName = `${serviceType}-ct-test-${uuid()}`; | ||||||
| const tableName = 'ElasticnetWineModel'; | const modelName = 'ElasticnetWineModel'; | ||||||
| const description = `This is ${tableName} description`; | const description = `This is ${modelName} description`; | ||||||
| 
 | 
 | ||||||
| const connectionInput = () => { | const connectionInput = () => { | ||||||
|   cy.get('#root\\/trackingUri').type(Cypress.env('mlModelTrackingUri')); |   cy.get('#root\\/trackingUri').type(Cypress.env('mlModelTrackingUri')); | ||||||
| @ -36,6 +36,12 @@ const connectionInput = () => { | |||||||
|   checkServiceFieldSectionHighlighting('registryUri'); |   checkServiceFieldSectionHighlighting('registryUri'); | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | const addIngestionInput = () => { | ||||||
|  |   cy.get('#root\\/mlModelFilterPattern\\/includes') | ||||||
|  |     .scrollIntoView() | ||||||
|  |     .type(`${modelName}{enter}`); | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| describe('ML Flow Ingestion', () => { | describe('ML Flow Ingestion', () => { | ||||||
|   beforeEach(() => { |   beforeEach(() => { | ||||||
|     cy.login(); |     cy.login(); | ||||||
| @ -47,6 +53,7 @@ describe('ML Flow Ingestion', () => { | |||||||
|     testServiceCreationAndIngestion({ |     testServiceCreationAndIngestion({ | ||||||
|       serviceType, |       serviceType, | ||||||
|       connectionInput, |       connectionInput, | ||||||
|  |       addIngestionInput, | ||||||
|       serviceName, |       serviceName, | ||||||
|       type: SERVICE_TYPE.MLModels, |       type: SERVICE_TYPE.MLModels, | ||||||
|       serviceCategory: 'MlModel', |       serviceCategory: 'MlModel', | ||||||
| @ -56,7 +63,7 @@ describe('ML Flow Ingestion', () => { | |||||||
|   it('Update MlModel description and verify description after re-run', () => { |   it('Update MlModel description and verify description after re-run', () => { | ||||||
|     updateDescriptionForIngestedTables( |     updateDescriptionForIngestedTables( | ||||||
|       serviceName, |       serviceName, | ||||||
|       tableName, |       modelName, | ||||||
|       description, |       description, | ||||||
|       SERVICE_TYPE.MLModels, |       SERVICE_TYPE.MLModels, | ||||||
|       MYDATA_SUMMARY_OPTIONS.mlmodels |       MYDATA_SUMMARY_OPTIONS.mlmodels | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sachin Chaurasiya
						Sachin Chaurasiya