From 22cad42842b704aece007eaaba7c1884e101f180 Mon Sep 17 00:00:00 2001 From: shiyaochen Date: Tue, 8 Oct 2024 14:25:24 -0400 Subject: [PATCH] update test --- .../StepForm/StepTools/__tests__/MagnetTools.test.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/__tests__/MagnetTools.test.tsx b/protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/__tests__/MagnetTools.test.tsx index 5efba0925e9..1ca8b3da538 100644 --- a/protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/__tests__/MagnetTools.test.tsx +++ b/protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepTools/__tests__/MagnetTools.test.tsx @@ -67,7 +67,7 @@ describe('MagnetTools', () => { }, } vi.mocked(getMagneticLabwareOptions).mockReturnValue([ - { name: 'mock name', value: 'mockValue' }, + { name: 'mock labware in mock module in slot abc', value: 'mockValue' }, ]) vi.mocked(getModuleEntities).mockReturnValue({ magnetId: { @@ -82,7 +82,9 @@ describe('MagnetTools', () => { it('renders the text and a switch button for v2', () => { render(props) screen.getByText('Module') - screen.getByText('mock name') + screen.getByText('abc') + screen.getByText('mock labware') + screen.getByText('mock module') screen.getByText('Magnet state') screen.getByLabelText('Engage') const toggleButton = screen.getByRole('switch')