@@ -201,11 +201,14 @@ describe("Set up project components", () => {
201201 cy . wait ( "@sessionLaunchers" ) ;
202202 // check session launcher view and edit session launcher
203203 cy . getDataCy ( "session-name" ) . click ( ) ;
204- cy . getDataCy ( "env-variables-card" ) . within ( ( ) => {
205- cy . get ( "tr" ) . should ( "have.length" , 2 ) ;
206- cy . get ( "tr" ) . first ( ) . should ( "contain.text" , "VAR_1" ) ;
207- cy . get ( "tr" ) . last ( ) . should ( "contain.text" , "VAR_2" ) ;
208- } ) ;
204+ cy . getDataCy ( "env-variables-card" )
205+ . scrollIntoView ( )
206+ . should ( "be.visible" )
207+ . within ( ( ) => {
208+ cy . getDataCy ( "env-var-row" ) . should ( "have.length" , 2 ) ;
209+ cy . getDataCy ( "env-var-name" ) . first ( ) . should ( "contain.text" , "VAR_1" ) ;
210+ cy . getDataCy ( "env-var-name" ) . last ( ) . should ( "contain.text" , "VAR_2" ) ;
211+ } ) ;
209212 cy . get ( "#modify-env-variables-button" ) . click ( ) ;
210213 // TEST bad input
211214 cy . getDataCy ( "env-variables-input_0-name" ) . clear ( ) . type ( "RENKU VALUE" ) ;
@@ -283,11 +286,14 @@ describe("Set up project components", () => {
283286 cy . wait ( "@sessionLaunchers" ) ;
284287 // check session launcher view and edit session launcher
285288 cy . getDataCy ( "session-name" ) . click ( ) ;
286- cy . getDataCy ( "env-variables-card" ) . within ( ( ) => {
287- cy . get ( "tr" ) . should ( "have.length" , 2 ) ;
288- cy . get ( "tr" ) . first ( ) . should ( "contain.text" , "VAR_1" ) ;
289- cy . get ( "tr" ) . last ( ) . should ( "contain.text" , "VAR_2" ) ;
290- } ) ;
289+ cy . getDataCy ( "env-variables-card" )
290+ . scrollIntoView ( )
291+ . should ( "be.visible" )
292+ . within ( ( ) => {
293+ cy . getDataCy ( "env-var-row" ) . should ( "have.length" , 2 ) ;
294+ cy . getDataCy ( "env-var-name" ) . first ( ) . should ( "contain.text" , "VAR_1" ) ;
295+ cy . getDataCy ( "env-var-name" ) . last ( ) . should ( "contain.text" , "VAR_2" ) ;
296+ } ) ;
291297 cy . get ( "#modify-env-variables-button" ) . click ( ) ;
292298 // TEST bad input
293299 cy . getDataCy ( "env-variables-input_0-name" ) . clear ( ) . type ( "RENKU VALUE" ) ;
0 commit comments