-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(protocol-designer): start of cypress happy path test for mix set…
…tings (#17320) <!-- Thanks for taking the time to open a Pull Request (PR)! Please make sure you've read the "Opening Pull Requests" section of our Contributing Guide: https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-pull-requests GitHub provides robust markdown to format your PR. Links, diagrams, pictures, and videos along with text formatting make it possible to create a rich and informative PR. For more information on GitHub markdown, see: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax To ensure your code is reviewed quickly and thoroughly, please fill out the sections below to the best of your ability! --> # Overview <!-- Describe your PR at a high level. State acceptance criteria and how this PR fits into other work. Link issues, PRs, and other relevant resources. --> Cypress happy path testing for mix settings ## Test Plan and Hands on Testing <!-- Describe your testing of the PR. Emphasize testing not reflected in the code. Attach protocols, logs, screenshots and any other assets that support your testing. --> ## Changelog <!-- List changes introduced by this PR considering future developers and the end user. Give careful thought and clear documentation to breaking changes. --> Added cypress actions and verifications for intended PD behavior ## Review requests <!-- - What do you need from reviewers to feel confident this PR is ready to merge? - Ask questions. --> ## Risk assessment <!-- - Indicate the level of attention this PR needs. - Provide context to guide reviewers. - Discuss trade-offs, coupling, and side effects. - Look for the possibility, even if you think it's small, that your change may affect some other part of the system. - For instance, changing return tip behavior may also change the behavior of labware calibration. - How do your unit tests and on hands on testing mitigate this PR's risks and the risk of future regressions? - Especially in high risk PRs, explain how you know your testing is enough. -->
- Loading branch information
1 parent
831c4ae
commit 4b054ad
Showing
6 changed files
with
651 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from 'cypress' | ||
|
||
module.exports = defineConfig({ | ||
video: false, | ||
viewportWidth: 1440, | ||
viewportHeight: 900, | ||
e2e: { | ||
baseUrl: 'http://localhost:5178', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import '../support/commands' | ||
import { MixActions, MixVerifications } from '../support/mixSetting' | ||
import { UniversalActions } from '../support/universalActions' | ||
import { TestFilePath, getTestFile } from '../support/testFiles' | ||
import { verifyImportProtocolPage } from '../support/import' | ||
import { runSteps } from '../support/StepExecution' | ||
import type { StepsList } from '../support/StepExecution' | ||
|
||
describe('Redesigned Mixing Steps - Happy Path', () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
cy.closeAnalyticsModal() | ||
const protocol = getTestFile(TestFilePath.DoItAllV8) | ||
cy.importProtocol(protocol.path) | ||
verifyImportProtocolPage(protocol) | ||
|
||
// NOTE: vv make this chunk better// | ||
cy.contains('Edit protocol').click() | ||
cy.contains('Protocol steps').click() | ||
cy.get('[id="AddStepButton"]').contains('Add Step').click() | ||
cy.verifyOverflowBtn() | ||
}) | ||
|
||
it('It should verify the working function of every permutation of mix checkboxes', () => { | ||
const steps: StepsList = [ | ||
MixActions.SelectMix, | ||
UniversalActions.Snapshot, | ||
MixVerifications.PartOne, | ||
MixActions.SelectLabware, | ||
MixActions.SelectWellInputField, | ||
MixVerifications.WellSelectPopout, | ||
UniversalActions.Snapshot, | ||
MixActions.Save, | ||
MixActions.EnterVolume, | ||
MixActions.EnterMixReps, | ||
MixActions.SelectTipHandling, | ||
UniversalActions.Snapshot, | ||
MixActions.Continue, | ||
MixVerifications.PartTwoAsp, | ||
MixActions.AspirateFlowRate, | ||
MixActions.AspWellOrder, | ||
MixVerifications.AspWellOrder, | ||
MixActions.AspMixTipPos, | ||
MixVerifications.AspMixTipPos, | ||
MixActions.Delay, | ||
MixActions.Dispense, | ||
MixVerifications.PartTwoDisp, | ||
MixActions.DispenseFlowRate, | ||
MixActions.Delay, | ||
MixActions.BlowoutLocation, | ||
MixActions.BlowoutFlowRate, | ||
MixActions.BlowoutPosFromTop, | ||
MixVerifications.BlowoutPopout, | ||
MixActions.Save, | ||
MixVerifications.Blowout, | ||
MixActions.TouchTip, | ||
MixVerifications.TouchTipPopout, | ||
MixActions.Save, | ||
MixVerifications.TouchTip, | ||
MixActions.Rename, | ||
MixActions.Save, | ||
MixVerifications.Rename, | ||
MixActions.Save, | ||
] | ||
runSteps(steps) | ||
}) | ||
}) | ||
|
||
/* | ||
To Add: | ||
MixActions.TipPosSideImageMove, | ||
MixActions.TipPosTopImageMove, | ||
MixActions.FlowRateWarning, **for asp and disp | ||
To Change: | ||
Need to refactor labware set up to have different labware on deck for better well selection coverage | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.