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

feat(app): extend SectionList component for Generic Step Screen #8513

Merged
merged 12 commits into from
Oct 13, 2021
Prev Previous commit
Next Next commit
feat(app): extend PositionCheckNav component for Generic Step Screen
closes #8500
  • Loading branch information
jerader committed Oct 12, 2021
commit 9ef324770a3a56ccc98b36432f46a3a2390a3c01
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const PICKUP_TIP_LABWARE_ID = 'PICKUP_TIP_LABWARE_ID'
const PRIMARY_PIPETTE_ID = 'PRIMARY_PIPETTE_ID'
const MOCK_SECTION = ['PRIMARY_PIPETTE_TIPRACKS' as Section]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this variable represents multiple sections, can we call it MOCK_SECTIONS (plural)?


const MOCK_LABWARE_POSITION_CHECK_STEP_TIP_RACK = {
const MOCK_LABWARE_POSITION_CHECK_STEP_TIPRACK = {
labwareId:
'1d57fc10-67ad-11ea-9f8b-3b50068bd62d:opentrons/opentrons_96_filtertiprack_200ul/1',
section: '',
Expand All @@ -55,13 +55,13 @@ describe('GenericStepScreen', () => {

beforeEach(() => {
props = {
selectedStep: MOCK_LABWARE_POSITION_CHECK_STEP_TIP_RACK,
selectedStep: MOCK_LABWARE_POSITION_CHECK_STEP_TIPRACK,
setCurrentLabwareCheckStep: () => {},
}
when(mockLabwarePositionCheckStepDetail)
.calledWith(
partialComponentPropsMatcher({
selectedStep: MOCK_LABWARE_POSITION_CHECK_STEP_TIP_RACK,
selectedStep: MOCK_LABWARE_POSITION_CHECK_STEP_TIPRACK,
})
)
.mockReturnValue(<div>Mock Labware Position Check Step Detail</div>)
Expand Down