Skip to content

Commit

Permalink
split multi-model and single-model tests up
Browse files Browse the repository at this point in the history
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
  • Loading branch information
gitdallas committed Dec 17, 2024
1 parent 7cc5fac commit 921bcf8
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,22 @@ const initIntercepts = ({
};

describe('Deploy model version', () => {
it('Deploy model version on unsupported platform', () => {
initIntercepts({ kServeInstalled: false, modelMeshInstalled: false });
it('Deploy model version on unsupported multi-model platform', () => {
initIntercepts({ modelMeshInstalled: false });
cy.visit(`/modelRegistry/modelregistry-sample/registeredModels/1/versions`);
const modelVersionRow = modelRegistry.getModelVersionRow('test model version');
modelVersionRow.findKebabAction('Deploy').click();
cy.wait('@getProjects');
modelVersionDeployModal.selectProjectByName('Model mesh project');
cy.findByText('Multi-model platform is not installed').should('exist');
});

it('Deploy model version on unsupported single-model platform', () => {
initIntercepts({ kServeInstalled: false });
cy.visit(`/modelRegistry/modelregistry-sample/registeredModels/1/versions`);
const modelVersionRow = modelRegistry.getModelVersionRow('test model version');
modelVersionRow.findKebabAction('Deploy').click();
cy.wait('@getProjects');
//make sure the selector is closed after previous selection
modelVersionDeployModal.findProjectSelector().should('have.attr', 'aria-expanded', 'false');
modelVersionDeployModal.selectProjectByName('KServe project');
cy.findByText('Single-model platform is not installed').should('exist');
});
Expand Down

0 comments on commit 921bcf8

Please sign in to comment.