Skip to content

Commit 1b05eaf

Browse files
committed
Fix CommandText.test.tsx after we changed liquid class displayNames
1 parent 4015cd0 commit 1b05eaf

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

components/src/organisms/CommandText/__tests__/CommandText.test.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
import { it, expect, describe } from 'vitest'
2-
import { screen } from '@testing-library/react'
3-
41
import {
52
FLEX_ROBOT_TYPE,
6-
OT2_ROBOT_TYPE,
73
GRIPPER_WASTE_CHUTE_ADDRESSABLE_AREA,
4+
OT2_ROBOT_TYPE,
85
} from '@opentrons/shared-data'
9-
import { i18n } from '../../../i18n'
10-
import { renderWithProviders } from '../../../testing/utils'
11-
import { CommandText } from '../index'
12-
136
import type {
147
AspirateInPlaceRunTimeCommand,
158
BlowoutInPlaceRunTimeCommand,
@@ -22,17 +15,22 @@ import type {
2215
DropTipRunTimeCommand,
2316
LabwareDefinition2,
2417
LoadLabwareRunTimeCommand,
18+
LoadLiquidClassRunTimeCommand,
2519
LoadLiquidRunTimeCommand,
20+
MoveToAddressableAreaForDropTipRunTimeCommand,
2621
MoveToAddressableAreaRunTimeCommand,
2722
MoveToWellRunTimeCommand,
2823
PrepareToAspirateRunTimeCommand,
2924
RunTimeCommand,
30-
MoveToAddressableAreaForDropTipRunTimeCommand,
31-
LoadLiquidClassRunTimeCommand,
3225
} from '@opentrons/shared-data'
26+
import { screen } from '@testing-library/react'
27+
import { describe, expect, it } from 'vitest'
28+
import { i18n } from '../../../i18n'
29+
import { renderWithProviders } from '../../../testing/utils'
3330
import type { CommandTextData } from '../../ProtocolTimelineScrubber'
3431
import { getCommandTextData } from '../../ProtocolTimelineScrubber/utils'
3532
import { mockRobotSideAnalysis } from '../fixtures'
33+
import { CommandText } from '../index'
3634

3735
const mockCommandTextData: CommandTextData = {
3836
commands: mockRobotSideAnalysis.commands,
@@ -708,7 +706,7 @@ describe('CommandText', () => {
708706
/>,
709707
{ i18nInstance: i18n }
710708
)
711-
screen.getByText('Loading Volatile Liquid Class')
709+
screen.getByText('Loading Volatile (80% ethanol) Liquid Class')
712710
})
713711
it('renders correct text for temperatureModule/setTargetTemperature', () => {
714712
const mockTemp = 20

0 commit comments

Comments
 (0)