Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rqa 3878 tempdeck pd cypress and refactoring of helper functions #17345

Open
wants to merge 14 commits into
base: edge
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions protocol-designer/cypress/e2e/ProtocolDesignerModulesTest.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import { SetupActions, SetupVerifications } from '../support/SetupSteps'
import { UniversalActions } from '../support/universalActions'
import { ModActions, ModVerifications } from '../support/SupportModules'
import { runSteps } from '../support/StepExecution'
import type { StepsList } from '../support/StepExecution'

describe('The Redesigned Create Protocol Landing Page', () => {
beforeEach(() => {
cy.visit('/')
cy.verifyHomePage()
cy.closeAnalyticsModal()
})

it('content and step 1 flow works', () => {
cy.clickCreateNew()
cy.verifyCreateNewHeader()
const steps: StepsList = [
SetupVerifications.OnStep1,
SetupVerifications.FlexSelected,
UniversalActions.Snapshot,
SetupActions.SelectOT2,
SetupVerifications.OT2Selected,
UniversalActions.Snapshot,
SetupActions.SelectFlex,
SetupVerifications.FlexSelected,
UniversalActions.Snapshot,
SetupActions.Confirm,
SetupVerifications.OnStep2,
SetupActions.SingleChannelPipette50,
SetupVerifications.StepTwo50uL,
UniversalActions.Snapshot,
SetupActions.Confirm,
SetupVerifications.StepTwoPart3,
UniversalActions.Snapshot,
SetupActions.Confirm,
SetupVerifications.OnStep3,
SetupActions.YesGripper,
SetupActions.Confirm,
SetupVerifications.Step4Verification,
SetupActions.AddThermocycler,
SetupVerifications.ThermocyclerImg,
SetupActions.AddHeaterShaker,
SetupVerifications.HeaterShakerImg,
SetupActions.AddMagBlock,
SetupVerifications.MagBlockImg,
SetupActions.AddTempdeck2,
SetupVerifications.Tempdeck2Img,
SetupActions.Confirm,
SetupActions.Confirm,
SetupActions.Confirm,
SetupActions.EditProtocolA,
SetupActions.ChoseDeckSlotC2,
SetupActions.AddHardwareLabware,
SetupActions.ClickLabwareHeader,
SetupActions.ClickWellPlatesSection,
SetupActions.SelectArmadillo96WellPlate,
SetupActions.ChoseDeckSlotC2Labware,
SetupActions.AddLiquid,
SetupActions.ClickLiquidButton,
SetupActions.DefineLiquid,
SetupActions.LiquidSaveWIP,
SetupActions.WellSelector,
SetupActions.LiquidDropdown,
SetupVerifications.LiquidPage,
UniversalActions.Snapshot,
SetupActions.SelectLiquidWells,
SetupActions.SetVolumeAndSaveforWells,
SetupActions.ChoseDeckSlotC1,
SetupActions.EditHardwareLabwareOnDeck,
SetupActions.ClickLabwareHeader,
SetupActions.AddAdapters,
SetupActions.DeepWellTempModAdapter,
SetupActions.AddNest96DeepWellPlate,
SetupActions.Done,
SetupActions.ProtocolStepsH,
SetupActions.AddStep,
ModActions.AddTemperatureStep,
ModVerifications.TempeDeckInitialForm,
UniversalActions.Snapshot,
ModActions.ActivateTempdeck,
ModActions.InputTempDeck4,
ModActions.SaveButtonTempdeck,
ModActions.PauseAfterSettingTempdeck,
// ModVerifications.Temp4CPauseTextVerification,
UniversalActions.Snapshot,
SetupActions.AddStep,
ModActions.AddTemperatureStep,
ModActions.ActivateTempdeck,
ModActions.InputTempDeck95,
ModActions.SaveButtonTempdeck,
ModActions.PauseAfterSettingTempdeck,
SetupActions.AddStep,
ModActions.AddTemperatureStep,
ModActions.ActivateTempdeck,
ModActions.InputTempDeck100,
]
runSteps(steps)
})
})
42 changes: 24 additions & 18 deletions protocol-designer/cypress/e2e/createNew.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { Actions, Verifications, runCreateTest } from '../support/createNew'
import { SetupActions, SetupVerifications } from '../support/SetupSteps'
import { UniversalActions } from '../support/universalActions'
import '../support/commands'
// Every test is goign to use StepsList
// Now every test will be a list of some combination of support
// typescript file list of actions for specific PD stuff and include StepsList for steps

import { runSteps } from '../support/StepExecution'
import type { StepsList } from '../support/StepExecution'

describe('The Redesigned Create Protocol Landing Page', () => {
beforeEach(() => {
Expand All @@ -11,29 +17,29 @@ describe('The Redesigned Create Protocol Landing Page', () => {
it('content and step 1 flow works', () => {
cy.verifyCreateNewHeader()
cy.clickCreateNew()
const steps: Array<Actions | Verifications | UniversalActions> = [
Verifications.OnStep1,
Verifications.FlexSelected,
const steps: StepsList = [
SetupVerifications.OnStep1,
SetupVerifications.FlexSelected,
UniversalActions.Snapshot,
Actions.SelectOT2,
Verifications.OT2Selected,
SetupActions.SelectOT2,
SetupVerifications.OT2Selected,
UniversalActions.Snapshot,
Actions.SelectFlex,
Verifications.FlexSelected,
SetupActions.SelectFlex,
SetupVerifications.FlexSelected,
UniversalActions.Snapshot,
Actions.Confirm,
Verifications.OnStep2,
Verifications.NinetySixChannel,
SetupActions.Confirm,
SetupVerifications.OnStep2,
SetupVerifications.NinetySixChannel,
UniversalActions.Snapshot,
Actions.GoBack,
Verifications.OnStep1,
Actions.SelectOT2,
Actions.Confirm,
Verifications.OnStep2,
Verifications.NotNinetySixChannel,
SetupActions.GoBack,
SetupVerifications.OnStep1,
SetupActions.SelectOT2,
SetupActions.Confirm,
SetupVerifications.OnStep2,
SetupVerifications.NotNinetySixChannel,
UniversalActions.Snapshot,
]

runCreateTest(steps)
runSteps(steps)
})
})
107 changes: 55 additions & 52 deletions protocol-designer/cypress/e2e/createNewFlex.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Actions, Verifications, runCreateTest } from '../support/createNew'
import { SetupActions, SetupVerifications } from '../support/SetupSteps'
import { UniversalActions } from '../support/universalActions'
import '../support/commands'
import { runSteps } from '../support/StepExecution'
import type { StepsList } from '../support/StepExecution'

describe('The Redesigned Create Protocol Landing Page', () => {
beforeEach(() => {
Expand All @@ -10,63 +13,63 @@ describe('The Redesigned Create Protocol Landing Page', () => {
it('content and step 1 flow works', () => {
cy.clickCreateNew()
cy.verifyCreateNewHeader()
const steps: Array<Actions | Verifications | UniversalActions> = [
Verifications.OnStep1,
Verifications.FlexSelected,
const steps: StepsList = [
SetupVerifications.OnStep1,
SetupVerifications.FlexSelected,
UniversalActions.Snapshot,
Actions.SelectOT2,
Verifications.OT2Selected,
SetupActions.SelectOT2,
SetupVerifications.OT2Selected,
UniversalActions.Snapshot,
Actions.SelectFlex,
Verifications.FlexSelected,
SetupActions.SelectFlex,
SetupVerifications.FlexSelected,
UniversalActions.Snapshot,
Actions.Confirm,
Verifications.OnStep2,
Actions.SingleChannelPipette50,
Verifications.StepTwo50uL,
SetupActions.Confirm,
SetupVerifications.OnStep2,
SetupActions.SingleChannelPipette50,
SetupVerifications.StepTwo50uL,
UniversalActions.Snapshot,
Actions.Confirm,
Verifications.StepTwoPart3,
SetupActions.Confirm,
SetupVerifications.StepTwoPart3,
UniversalActions.Snapshot,
Actions.Confirm,
Verifications.OnStep3,
Actions.YesGripper,
Actions.Confirm,
Verifications.Step4Verification,
Actions.AddThermocycler,
Verifications.ThermocyclerImg,
Actions.AddHeaterShaker,
Verifications.HeaterShakerImg,
Actions.AddMagBlock,
Verifications.MagBlockImg,
Actions.AddTempdeck2,
Verifications.Tempdeck2Img,
Actions.Confirm,
Actions.Confirm,
Actions.Confirm,
Actions.EditProtocolA,
Actions.ChoseDeckSlotC2,
Actions.AddHardwareLabware,
Actions.ClickLabwareHeader,
Actions.ClickWellPlatesSection,
Actions.SelectArmadillo96WellPlate,
Actions.ChoseDeckSlotC2Labware,
Actions.AddLiquid,
Actions.ClickLiquidButton,
Actions.DefineLiquid,
Actions.LiquidSaveWIP,
Actions.WellSelector,
Actions.LiquidDropdown,
Verifications.LiquidPage,
SetupActions.Confirm,
SetupVerifications.OnStep3,
SetupActions.YesGripper,
SetupActions.Confirm,
SetupVerifications.Step4Verification,
SetupActions.AddThermocycler,
SetupVerifications.ThermocyclerImg,
SetupActions.AddHeaterShaker,
SetupVerifications.HeaterShakerImg,
SetupActions.AddMagBlock,
SetupVerifications.MagBlockImg,
SetupActions.AddTempdeck2,
SetupVerifications.Tempdeck2Img,
SetupActions.Confirm,
SetupActions.Confirm,
SetupActions.Confirm,
SetupActions.EditProtocolA,
SetupActions.ChoseDeckSlotC2,
SetupActions.AddHardwareLabware,
SetupActions.ClickLabwareHeader,
SetupActions.ClickWellPlatesSection,
SetupActions.SelectArmadillo96WellPlate,
SetupActions.ChoseDeckSlotC2Labware,
SetupActions.AddLiquid,
SetupActions.ClickLiquidButton,
SetupActions.DefineLiquid,
SetupActions.LiquidSaveWIP,
SetupActions.WellSelector,
SetupActions.LiquidDropdown,
SetupVerifications.LiquidPage,
UniversalActions.Snapshot,
Actions.SelectLiquidWells,
Actions.SetVolumeAndSaveforWells,
Actions.ChoseDeckSlotC3,
Actions.AddHardwareLabware,
Actions.ClickLabwareHeader,
Actions.ClickWellPlatesSection,
Actions.SelectBioRad96WellPlate,
SetupActions.SelectLiquidWells,
SetupActions.SetVolumeAndSaveforWells,
SetupActions.ChoseDeckSlotC3,
SetupActions.AddHardwareLabware,
SetupActions.ClickLabwareHeader,
SetupActions.ClickWellPlatesSection,
SetupActions.SelectBioRad96WellPlate,
]
runCreateTest(steps)
runSteps(steps)
})
})
Loading
Loading