@@ -93,6 +93,7 @@ export enum Actions {
93
93
DispenseMixVolume = 'Mix volume for transfer dispense' ,
94
94
DispenseMixTimes = 'Mix times for transfer dispense' ,
95
95
DispenseAirGapVolume = 'Air gap volume for transfer dispense' ,
96
+ BlowoutTransferDestination = 'Select Destination well' ,
96
97
}
97
98
98
99
export enum Verifications {
@@ -117,6 +118,7 @@ export enum Verifications {
117
118
TouchTip = 'Touch tip option is unchecked' ,
118
119
MixT = 'Mix option is unchecked' ,
119
120
AirGap = 'Air gap option is unchecked' ,
121
+ ExtraDispenseTransfer = 'These are the extra dispense transfer' ,
120
122
}
121
123
122
124
export enum Content {
@@ -176,6 +178,7 @@ export enum Content {
176
178
PreWetTip = 'Pre-wet tip' ,
177
179
TouchTip = 'Touch tip' ,
178
180
AirGap = 'Air gap' ,
181
+ Save = 'Save' ,
179
182
}
180
183
181
184
export enum Locators {
@@ -488,7 +491,7 @@ const executeAction = (action: Actions | UniversalActions): void => {
488
491
489
492
cy . get ( Locators . ModalShellArea )
490
493
. find ( Locators . SaveButton ) // Locate the Save button
491
- . contains ( ' Save' )
494
+ . contains ( Content . Save )
492
495
. click ( { force : true } ) // Trigger the Save button
493
496
break
494
497
case Actions . WellSelector :
@@ -509,7 +512,7 @@ const executeAction = (action: Actions | UniversalActions): void => {
509
512
break
510
513
case Actions . SetVolumeAndSaveforWells :
511
514
cy . get ( Locators . AddInitialVolume ) . type ( `150` ) // Set volume
512
- cy . contains ( 'button' , ' Save' ) . click ( ) // Click Save button
515
+ cy . contains ( 'button' , Content . Save ) . click ( ) // Click Save button
513
516
cy . contains ( 'button' , 'Done' ) . click ( { force : true } ) // Click Done button, forcing click if necessary
514
517
break
515
518
case Actions . ProtocolStepsH :
@@ -550,7 +553,7 @@ const executeAction = (action: Actions | UniversalActions): void => {
550
553
break
551
554
552
555
case Actions . SaveSelectedWells :
553
- cy . contains ( ' Save' ) . click ( { force : true } )
556
+ cy . contains ( Content . Save ) . click ( { force : true } )
554
557
break
555
558
556
559
case Actions . InputTransferVolume30 :
@@ -595,6 +598,11 @@ const executeAction = (action: Actions | UniversalActions): void => {
595
598
case Actions . DispenseAirGapVolume :
596
599
cy . get ( 'input[name = "dispense_airGap_volume"]' ) . type ( '10' )
597
600
break
601
+ case Actions . BlowoutTransferDestination :
602
+ cy . contains ( 'Blowout' ) . closest ( 'div' ) . find ( 'button' ) . click ( )
603
+ cy . contains ( 'Choose option' ) . click ( )
604
+ cy . contains ( 'Destination Well' ) . click ( )
605
+ break
598
606
default :
599
607
throw new Error ( `Unrecognized action: ${ action as string } ` )
600
608
}
@@ -727,6 +735,12 @@ const verifyStep = (verification: Verifications): void => {
727
735
. should ( 'exist' )
728
736
. and ( 'have.attr' , 'aria-hidden' , 'true' )
729
737
break
738
+ case Verifications . ExtraDispenseTransfer :
739
+ cy . contains ( 'Blowout location' )
740
+ cy . contains ( 'Blowout flow rate' )
741
+ cy . contains ( 'Blowout position from top' )
742
+ cy . contains ( 'Choose option' )
743
+ break
730
744
731
745
default :
732
746
throw new Error (
0 commit comments