Skip to content

Commit aab3ff2

Browse files
committed
tests
1 parent b46774c commit aab3ff2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

app/src/molecules/Command/__fixtures__/mockRobotSideAnalysis.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6391,6 +6391,26 @@
63916391
"addressableAreaName": "D3",
63926392
"offset": { "x": 0, "y": 0, "z": 0 }
63936393
}
6394+
},
6395+
{
6396+
"id": "84f7af1d-c097-4d4b-9819-ad56479bbbb8",
6397+
"createdAt": "2023-01-31T21:53:04.965216+00:00",
6398+
"commandType": "liquidProbe",
6399+
"key": "1248111104",
6400+
"status": "succeeded",
6401+
"params": {
6402+
"labwareId": "b2a40c9d-31b0-4f27-ad4a-c92ced91204d",
6403+
"wellName": "A1",
6404+
"wellLocation": {
6405+
"origin": "top",
6406+
"offset": {
6407+
"x": 0,
6408+
"y": 0,
6409+
"z": 0
6410+
}
6411+
},
6412+
"pipetteId": "f6d1c83c-9d1b-4d0d-9de3-e6d649739cfb"
6413+
}
63946414
}
63956415
],
63966416
"errors": [],

app/src/molecules/Command/__tests__/CommandText.test.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,4 +1401,24 @@ describe('CommandText', () => {
14011401
'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'
14021402
)
14031403
})
1404+
1405+
it('renders correct text for liquidProbe', () => {
1406+
const command = mockCommandTextData.commands.find(
1407+
c => c.commandType === 'liquidProbe'
1408+
)
1409+
expect(command).not.toBeUndefined()
1410+
if (command != null) {
1411+
renderWithProviders(
1412+
<CommandText
1413+
commandTextData={mockCommandTextData}
1414+
robotType={FLEX_ROBOT_TYPE}
1415+
command={command}
1416+
/>,
1417+
{ i18nInstance: i18n }
1418+
)
1419+
screen.getByText(
1420+
'Detecting liquid presence in well A1 of Opentrons 96 Tip Rack 300 µL in Slot 9'
1421+
)
1422+
}
1423+
})
14041424
})

0 commit comments

Comments
 (0)