@@ -27,7 +27,7 @@ import {
27
27
import { deleteApiRequest , getInfra , setElectricalProfile } from './utils/api-setup' ;
28
28
import { cleanWhitespace } from './utils/dataNormalizer' ;
29
29
import createScenario from './utils/scenario' ;
30
- import scrollContainer from './utils/scrollHelper' ;
30
+ import { scrollHorizontally } from './utils/scrollHelper' ;
31
31
import { deleteScenario } from './utils/teardown-utils' ;
32
32
import type { StationData } from './utils/types' ;
33
33
import enTranslations from '../public/locales/en/timesStops.json' ;
@@ -149,7 +149,7 @@ test.describe('Simulation Settings Tab Verification', () => {
149
149
await routePage . performPathfindingByTrigram ( 'WS' , 'SES' , 'MWS' ) ;
150
150
// Navigate to the Times and Stops tab and fill in required data
151
151
await operationalStudiesPage . clickOnTimesAndStopsTab ( ) ;
152
- await scrollContainer ( page , '.time-stops-datasheet .dsg-container' ) ;
152
+ await scrollHorizontally ( page , '.time-stops-datasheet .dsg-container' ) ;
153
153
}
154
154
) ;
155
155
@@ -193,7 +193,7 @@ test.describe('Simulation Settings Tab Verification', () => {
193
193
actionName : 'visual assertion' ,
194
194
}
195
195
) ;
196
- await scrollContainer ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
196
+ await scrollHorizontally ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
197
197
await opOutputTablePage . getOutputTableData ( expectedCellDataElectricalProfileON ) ;
198
198
await opTimetablePage . clickOnTimetableCollapseButton ( ) ;
199
199
// Deactivate electrical profiles and verify output results
@@ -254,7 +254,7 @@ test.describe('Simulation Settings Tab Verification', () => {
254
254
actionName : 'visual assertion' ,
255
255
}
256
256
) ;
257
- await scrollContainer ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
257
+ await scrollHorizontally ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
258
258
await opOutputTablePage . getOutputTableData ( expectedCellDataCodeCompoON ) ;
259
259
await opTimetablePage . clickOnTimetableCollapseButton ( ) ;
260
260
// Remove the composition code option and verify the changes
@@ -325,7 +325,7 @@ test.describe('Simulation Settings Tab Verification', () => {
325
325
actionName : 'visual assertion' ,
326
326
}
327
327
) ;
328
- await scrollContainer ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
328
+ await scrollHorizontally ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
329
329
await opOutputTablePage . getOutputTableData ( expectedCellDataLinearMargin ) ;
330
330
await opTimetablePage . clickOnTimetableCollapseButton ( ) ;
331
331
// Modify the margin to 'Mareco' and verify the changes
@@ -398,7 +398,7 @@ test.describe('Simulation Settings Tab Verification', () => {
398
398
actionName : 'visual assertion' ,
399
399
}
400
400
) ;
401
- await scrollContainer ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
401
+ await scrollHorizontally ( page , '.time-stop-outputs .time-stops-datasheet .dsg-container' ) ;
402
402
await opOutputTablePage . getOutputTableData ( expectedCellDataForAllSettings ) ;
403
403
} ) ;
404
404
} ) ;
0 commit comments