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 serviceName = `${serviceType}-ct-test-${uuid()}`;
const tableName = 'ElasticnetWineModel';
const description = `This is ${tableName} description`;
const modelName = 'ElasticnetWineModel';
const description = `This is ${modelName} description`;
const connectionInput = () => {
cy.get('#root\\/trackingUri').type(Cypress.env('mlModelTrackingUri'));
@ -36,6 +36,12 @@ const connectionInput = () => {
checkServiceFieldSectionHighlighting('registryUri');
};
const addIngestionInput = () => {
cy.get('#root\\/mlModelFilterPattern\\/includes')
.scrollIntoView()
.type(`${modelName}{enter}`);
};
describe('ML Flow Ingestion', () => {
beforeEach(() => {
cy.login();
@ -47,6 +53,7 @@ describe('ML Flow Ingestion', () => {
testServiceCreationAndIngestion({
serviceType,
connectionInput,
addIngestionInput,
serviceName,
type: SERVICE_TYPE.MLModels,
serviceCategory: 'MlModel',
@ -56,7 +63,7 @@ describe('ML Flow Ingestion', () => {
it('Update MlModel description and verify description after re-run', () => {
updateDescriptionForIngestedTables(
serviceName,
tableName,
modelName,
description,
SERVICE_TYPE.MLModels,
MYDATA_SUMMARY_OPTIONS.mlmodels