diff --git a/frontend/src/__tests__/cypress/cypress/pages/modelRegistry/modelVersionDeployModal.ts b/frontend/src/__tests__/cypress/cypress/pages/modelRegistry/modelVersionDeployModal.ts index 8887055e77..5551e3d10f 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/modelRegistry/modelVersionDeployModal.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/modelRegistry/modelVersionDeployModal.ts @@ -11,7 +11,7 @@ class ModelVersionDeployModal extends Modal { selectProjectByName(name: string) { this.findProjectSelector().click(); - this.find().findByRole('option', { name }).click(); + this.find().findByRole('option', { name, timeout: 5000 }).click(); } } diff --git a/frontend/src/__tests__/cypress/cypress/tests/mocked/modelRegistry/modelVersionDeploy.cy.ts b/frontend/src/__tests__/cypress/cypress/tests/mocked/modelRegistry/modelVersionDeploy.cy.ts index 0d80fa1d10..a89fe0e42b 100644 --- a/frontend/src/__tests__/cypress/cypress/tests/mocked/modelRegistry/modelVersionDeploy.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/tests/mocked/modelRegistry/modelVersionDeploy.cy.ts @@ -135,7 +135,7 @@ const initIntercepts = ({ }), mockProjectK8sResource({ k8sName: 'test-project', displayName: 'Test project' }), ]), - ); + ).as('getProjects'); cy.interceptOdh( `GET /api/service/modelregistry/:serviceName/api/model_registry/:apiVersion/model_versions/:modelVersionId/artifacts`, @@ -185,8 +185,10 @@ describe('Deploy model version', () => { 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'); + cy.wait('@getProjects'); modelVersionDeployModal.selectProjectByName('KServe project'); cy.findByText('Single-model platform is not installed').should('exist'); });