Skip to content

Commit 954cc09

Browse files
committed
rebase
1 parent f71e5f7 commit 954cc09

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const STOP_MODAL_PREFERENCE_KEY = 'odh.dashboard.modelServing.stop.modal.prefere
3333

3434
let testData: DataScienceProjectData;
3535
let projectName: string;
36-
let resourceName: string;
3736
let modelName: string;
3837
let modelURI: string;
3938
let servingRuntime: string;
@@ -181,10 +180,12 @@ describe('Verify Admin Single Model Creation and Validation using the UI', () =>
181180

182181
//Verify the model is stopped
183182
cy.step('Verify the model is stopped');
184-
checkInferenceServiceState(resourceName, projectName, {
185-
checkReady: false,
186-
checkStopped: true,
187-
requireLoadedState: false,
183+
cy.get<string>('@resourceName').then((resourceName) => {
184+
checkInferenceServiceState(resourceName, projectName, {
185+
checkReady: false,
186+
checkStopped: true,
187+
requireLoadedState: false,
188+
});
188189
});
189190
kServeRow.findStatusLabel(ModelStateLabel.STOPPED, MODEL_STATUS_TIMEOUT).should('exist');
190191

0 commit comments

Comments
 (0)