@@ -12,7 +12,7 @@ const studyName = study.name;
12
12
const scenarioName = scenario . name ;
13
13
const rollingStockName = 'rollingstock_1500_25000_test_e2e' ;
14
14
15
- const rollingStockTranslation = manageTrainScheduleTranslation . rollingstock ;
15
+ const emptyRouteTranslation = manageTrainScheduleTranslation . pathfindingNoState ;
16
16
17
17
test . describe ( 'STDCM page' , ( ) => {
18
18
test ( 'should configure and launch a stdcm' , async ( { page } ) => {
@@ -33,17 +33,16 @@ test.describe('STDCM page', () => {
33
33
await stdcmPage . selectMiniCard ( studyName ) ;
34
34
await stdcmPage . selectMiniCard ( scenarioName ) ;
35
35
36
- // Check no rollingstock is selected and "rollingstock" is in the missing information
37
- await expect ( stdcmPage . missingParams ) . toContainText ( rollingStockTranslation ) ;
36
+ // Check no route is selected
37
+ await expect ( stdcmPage . pathfindingNoState ) . toContainText ( emptyRouteTranslation ) ;
38
38
39
39
// Select a rolling stock
40
40
await stdcmPage . openRollingstockModal ( ) ;
41
41
await expect ( stdcmPage . rollingStockSelectorModal ) . toBeVisible ( ) ;
42
42
await stdcmPage . selectRollingStock ( rollingStockName ) ;
43
43
44
- // Check that the rollingstock is selected and "rollingstock" is not in the missing information anymore
44
+ // Check that the rollingstock is selected
45
45
await expect ( stdcmPage . rollingStockSelectorModal ) . not . toBeVisible ( ) ;
46
- await expect ( stdcmPage . missingParams ) . not . toContainText ( rollingStockTranslation ) ;
47
46
48
47
await stdcmPage . selectPathByTrigram ( 'MWS' , 'NES' ) ;
49
48
await stdcmPage . checkPathfindingDistance ( '34.000 km' ) ;
0 commit comments