@@ -396,19 +396,30 @@ describe('Charging Site and FSE supplier workflows', () => {
396396 cy . visit ( '/compliance-reporting/fse' , { timeout : 30000 } )
397397 cy . wait ( '@chargingEquipmentList' )
398398
399- cy . contains ( 'button' , 'Select all Draft/Updated' , { timeout : 30000 } ) . click ( )
400- cy . contains ( 'button' , 'Submit selected' ) . click ( )
399+ cy . contains ( 'button' , 'Select all Draft/Updated' , { timeout : 30000 } )
400+ . should ( 'be.visible' )
401+ . click ( )
402+ cy . contains ( 'button' , 'Submit selected' , { timeout : 30000 } )
403+ . should ( 'be.visible' )
404+ . click ( )
405+ // Click the confirmation button in the modal
401406 cy . contains ( 'button' , 'Submit selected' , { timeout : 30000 } ) . last ( ) . click ( )
402407 cy . wait ( '@bulkSubmit' )
403- cy . getByDataTest ( 'alert-box' ) . should ( 'contain' , 'submitted' )
408+ cy . getByDataTest ( 'alert-box' , { timeout : 30000 } ) . should ( 'contain' , 'submitted' )
404409
405- cy . contains ( 'button' , 'Select all Validated' , { timeout : 30000 } ) . click ( )
406- cy . contains ( 'button' , 'Set to Decommissioned' ) . first ( ) . click ( )
410+ cy . contains ( 'button' , 'Select all Validated' , { timeout : 30000 } )
411+ . should ( 'be.visible' )
412+ . click ( )
413+ cy . contains ( 'button' , 'Set to Decommissioned' , { timeout : 30000 } )
414+ . should ( 'be.visible' )
415+ . first ( )
416+ . click ( )
417+ // Click the confirmation button in the modal
407418 cy . contains ( 'button' , 'Set to Decommissioned' , { timeout : 30000 } )
408419 . last ( )
409420 . click ( )
410421 cy . wait ( '@bulkDecommission' )
411- cy . getByDataTest ( 'alert-box' ) . should ( 'contain' , 'decommissioned' )
422+ cy . getByDataTest ( 'alert-box' , { timeout : 30000 } ) . should ( 'contain' , 'decommissioned' )
412423 } )
413424} )
414425
@@ -499,13 +510,18 @@ describe('FSE processing and map workflows (IDIR)', () => {
499510 cy . contains ( 'h5, h6' , 'Charging site/FSE processing' , {
500511 timeout : 30000
501512 } ) . should ( 'be.visible' )
502- cy . contains ( 'button' , 'Select all submitted' ) . click ( )
503- cy . contains ( 'button' , 'Set selected as validated' ) . click ( )
513+ cy . contains ( 'button' , 'Select all submitted' , { timeout : 30000 } )
514+ . should ( 'be.visible' )
515+ . click ( )
516+ cy . contains ( 'button' , 'Set selected as validated' , { timeout : 30000 } )
517+ . should ( 'be.visible' )
518+ . click ( )
519+ // Click the confirmation button in the modal
504520 cy . contains ( 'button' , 'Validate Equipment' , { timeout : 30000 } )
505521 . last ( )
506522 . click ( )
507523 cy . wait ( '@bulkValidate' )
508- cy . getByDataTest ( 'alert-box' ) . should ( 'contain' , 'Validated' )
524+ cy . getByDataTest ( 'alert-box' , { timeout : 30000 } ) . should ( 'contain' , 'Validated' )
509525 } )
510526
511527 it ( 'renders the FSE map view and supports interactions' , ( ) => {
0 commit comments