fix: mlflow cypress by adding model filter pattern (#12935)

This commit is contained in:
Sachin Chaurasiya 2023-08-21 14:49:53 +05:30 committed by GitHub
parent c101b3c9d1
commit 642e526af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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