Skip to content

Commit 28aeb04

Browse files
committed
We have completed the step form
1 parent 9662f91 commit 28aeb04

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

protocol-designer/cypress/e2e/transferSettings.cy.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,12 @@ describe('The Redesigned Create Protocol Landing Page', () => {
105105
Actions.DispenseMixVolume,
106106
Actions.DispenseMixTimes,
107107
Actions.DispenseAirGapVolume,
108+
Actions.BlowoutTransferDestination,
109+
Verifications.ExtraDispenseTransfer,
108110
]
109111
runCreateTest(steps)
110-
cy.contains('Blowout').closest('div').find('button').click()
111-
cy.contains('Blowout location')
112-
cy.contains('Blowout flow rate')
113-
cy.contains('Blowout position from top')
114-
cy.contains('Choose option').click()
115-
cy.contains('Destination Well').click()
112+
116113
cy.contains('Save').click()
114+
cy.contains('button', 'Transfer').should('be.visible').click()
117115
})
118116
})

protocol-designer/cypress/support/createNew.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export enum Actions {
9393
DispenseMixVolume = 'Mix volume for transfer dispense',
9494
DispenseMixTimes = 'Mix times for transfer dispense',
9595
DispenseAirGapVolume = 'Air gap volume for transfer dispense',
96+
BlowoutTransferDestination = 'Select Destination well',
9697
}
9798

9899
export enum Verifications {
@@ -117,6 +118,7 @@ export enum Verifications {
117118
TouchTip = 'Touch tip option is unchecked',
118119
MixT = 'Mix option is unchecked',
119120
AirGap = 'Air gap option is unchecked',
121+
ExtraDispenseTransfer = 'These are the extra dispense transfer',
120122
}
121123

122124
export enum Content {
@@ -176,6 +178,7 @@ export enum Content {
176178
PreWetTip = 'Pre-wet tip',
177179
TouchTip = 'Touch tip',
178180
AirGap = 'Air gap',
181+
Save = 'Save',
179182
}
180183

181184
export enum Locators {
@@ -488,7 +491,7 @@ const executeAction = (action: Actions | UniversalActions): void => {
488491

489492
cy.get(Locators.ModalShellArea)
490493
.find(Locators.SaveButton) // Locate the Save button
491-
.contains('Save')
494+
.contains(Content.Save)
492495
.click({ force: true }) // Trigger the Save button
493496
break
494497
case Actions.WellSelector:
@@ -509,7 +512,7 @@ const executeAction = (action: Actions | UniversalActions): void => {
509512
break
510513
case Actions.SetVolumeAndSaveforWells:
511514
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
513516
cy.contains('button', 'Done').click({ force: true }) // Click Done button, forcing click if necessary
514517
break
515518
case Actions.ProtocolStepsH:
@@ -550,7 +553,7 @@ const executeAction = (action: Actions | UniversalActions): void => {
550553
break
551554

552555
case Actions.SaveSelectedWells:
553-
cy.contains('Save').click({ force: true })
556+
cy.contains(Content.Save).click({ force: true })
554557
break
555558

556559
case Actions.InputTransferVolume30:
@@ -595,6 +598,11 @@ const executeAction = (action: Actions | UniversalActions): void => {
595598
case Actions.DispenseAirGapVolume:
596599
cy.get('input[name = "dispense_airGap_volume"]').type('10')
597600
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
598606
default:
599607
throw new Error(`Unrecognized action: ${action as string}`)
600608
}
@@ -727,6 +735,12 @@ const verifyStep = (verification: Verifications): void => {
727735
.should('exist')
728736
.and('have.attr', 'aria-hidden', 'true')
729737
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
730744

731745
default:
732746
throw new Error(

0 commit comments

Comments
 (0)