Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Jul 19, 2024
1 parent b46774c commit aab3ff2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/src/molecules/Command/__fixtures__/mockRobotSideAnalysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -6391,6 +6391,26 @@
"addressableAreaName": "D3",
"offset": { "x": 0, "y": 0, "z": 0 }
}
},
{
"id": "84f7af1d-c097-4d4b-9819-ad56479bbbb8",
"createdAt": "2023-01-31T21:53:04.965216+00:00",
"commandType": "liquidProbe",
"key": "1248111104",
"status": "succeeded",
"params": {
"labwareId": "b2a40c9d-31b0-4f27-ad4a-c92ced91204d",
"wellName": "A1",
"wellLocation": {
"origin": "top",
"offset": {
"x": 0,
"y": 0,
"z": 0
}
},
"pipetteId": "f6d1c83c-9d1b-4d0d-9de3-e6d649739cfb"
}
}
],
"errors": [],
Expand Down
20 changes: 20 additions & 0 deletions app/src/molecules/Command/__tests__/CommandText.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1401,4 +1401,24 @@ describe('CommandText', () => {
'Moving NEST 96 Well Plate 100 µL PCR Full Skirt (1) using gripper from Magnetic Module GEN2 in Slot 1 to Magnetic Module GEN2 in Slot 1'
)
})

it('renders correct text for liquidProbe', () => {
const command = mockCommandTextData.commands.find(
c => c.commandType === 'liquidProbe'
)
expect(command).not.toBeUndefined()
if (command != null) {
renderWithProviders(
<CommandText
commandTextData={mockCommandTextData}
robotType={FLEX_ROBOT_TYPE}
command={command}
/>,
{ i18nInstance: i18n }
)
screen.getByText(
'Detecting liquid presence in well A1 of Opentrons 96 Tip Rack 300 µL in Slot 9'
)
}
})
})

0 comments on commit aab3ff2

Please sign in to comment.