Skip to content

Commit

Permalink
Small amendment to select model server on ODH
Browse files Browse the repository at this point in the history
  • Loading branch information
antowaddle committed Jan 21, 2025
1 parent 73a8b84 commit 55812f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/__tests__/cypress/cypress/pages/modelServing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ class ServingRuntimeModal extends Modal {
return this.find().findByTestId('serving-runtime-template-selection');
}

findOpenVinoModelServer() {
return this.find().findByTestId('ovms');
}

findPredefinedArgsButton() {
return this.find().findByTestId('view-predefined-args-button');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ describe('Verify Admin Multi Model Creation and Validation using the UI', () =>
modelServingGlobal.findMultiModelButton().click();
modelServingSection.findAddModelServerButton().click();
createServingRuntimeModal.findModelServerName().type(testData.multiModelAdminName);
// Check if Serving Runtime is selectable, if it is then select OpenVino Model Server
createServingRuntimeModal
.findServingRuntimeTemplateDropdown()
.should('be.visible')
.then(($element) => {
if ($element.is(':visible') && !$element.prop('disabled')) {
cy.wrap($element).click();
createServingRuntimeModal.findOpenVinoModelServer().click();
} else {
cy.log('Serving Runtime Template dropdown is not clickable. Skipping this step.');
}
});

// Click the deployed model route checkbox and confirm it's checked
cy.step('Allow Model to be accessed from an External route without Authentication');
Expand Down

0 comments on commit 55812f5

Please sign in to comment.