@@ -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