Skip to content

Commit 6163052

Browse files
committed
rebase
1 parent f71e5f7 commit 6163052

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

packages/cypress/cypress/tests/e2e/dataScienceProjects/models/testDeployLLMDServing.cy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ describe('A user can deploy an LLMD model', () => {
171171

172172
cy.step('Verify that the Model is ready');
173173
// Image was patched in YAML editor before submit, so no post-deployment patching needed
174-
cy.get<string>('@resourceName').then((resourceName) => {
174+
cy.get<string>('@resourceName').then((resName) => {
175+
resourceName = resName;
175176
checkLLMInferenceServiceState(resourceName, projectName, { checkReady: true });
176177
});
177178

packages/cypress/cypress/tests/e2e/dataScienceProjects/models/testSingleModelAdminCreation.cy.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ describe('Verify Admin Single Model Creation and Validation using the UI', () =>
155155
modelServingSection.findModelServerDeployedName(modelName);
156156

157157
cy.step('Verify that the Model is created Successfully on the backend');
158-
cy.get<string>('@resourceName').then((resourceName) => {
158+
cy.get<string>('@resourceName').then((resName) => {
159+
resourceName = resName;
159160
checkInferenceServiceState(resourceName, projectName, {});
160161
});
161162

@@ -181,10 +182,13 @@ describe('Verify Admin Single Model Creation and Validation using the UI', () =>
181182

182183
//Verify the model is stopped
183184
cy.step('Verify the model is stopped');
184-
checkInferenceServiceState(resourceName, projectName, {
185-
checkReady: false,
186-
checkStopped: true,
187-
requireLoadedState: false,
185+
cy.get<string>('@resourceName').then((resName) => {
186+
resourceName = resName;
187+
checkInferenceServiceState(resourceName, projectName, {
188+
checkReady: false,
189+
checkStopped: true,
190+
requireLoadedState: false,
191+
});
188192
});
189193
kServeRow.findStatusLabel(ModelStateLabel.STOPPED, MODEL_STATUS_TIMEOUT).should('exist');
190194

@@ -195,7 +199,8 @@ describe('Verify Admin Single Model Creation and Validation using the UI', () =>
195199

196200
// //Verify the model is running again
197201
cy.step('Verify the model is running again');
198-
cy.get<string>('@resourceName').then((resourceName) => {
202+
cy.get<string>('@resourceName').then((resName) => {
203+
resourceName = resName;
199204
checkInferenceServiceState(resourceName, projectName, {});
200205
});
201206
// kServeRow
@@ -205,7 +210,8 @@ describe('Verify Admin Single Model Creation and Validation using the UI', () =>
205210

206211
cy.step('Stop the model before editing');
207212
kServeRow.findStateActionToggle().click();
208-
cy.get<string>('@resourceName').then((resourceName) => {
213+
cy.get<string>('@resourceName').then((resName) => {
214+
resourceName = resName;
209215
checkInferenceServiceState(resourceName, projectName, {
210216
checkReady: false,
211217
checkStopped: true,

0 commit comments

Comments
 (0)