@@ -3,7 +3,7 @@ import { describe, it, vi, beforeEach, afterEach, expect } from 'vitest'
3
3
import { screen } from '@testing-library/react'
4
4
import { when } from 'vitest-when'
5
5
6
- import { NoParameters } from '@opentrons/components'
6
+ import { InfoScreen } from '@opentrons/components'
7
7
import { renderWithProviders } from '../../../../__testing-utils__'
8
8
import { i18n } from '../../../../i18n'
9
9
import { useMostRecentCompletedAnalysis } from '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis'
@@ -16,10 +16,10 @@ import type {
16
16
} from '@opentrons/shared-data'
17
17
18
18
vi . mock ( '@opentrons/components' , async importOriginal => {
19
- const actual = await importOriginal < typeof NoParameters > ( )
19
+ const actual = await importOriginal < typeof InfoScreen > ( )
20
20
return {
21
21
...actual ,
22
- NoParameters : vi . fn ( ) ,
22
+ InfoScreen : vi . fn ( ) ,
23
23
}
24
24
} )
25
25
vi . mock ( '../../../LabwarePositionCheck/useMostRecentCompletedAnalysis' )
@@ -94,7 +94,7 @@ describe('ProtocolRunRuntimeParameters', () => {
94
94
props = {
95
95
runId : RUN_ID ,
96
96
}
97
- vi . mocked ( NoParameters ) . mockReturnValue ( < div > mock NoParameter </ div > )
97
+ vi . mocked ( InfoScreen ) . mockReturnValue ( < div > mock InfoScreen </ div > )
98
98
when ( vi . mocked ( useMostRecentCompletedAnalysis ) )
99
99
. calledWith ( RUN_ID )
100
100
. thenReturn ( {
@@ -151,7 +151,7 @@ describe('ProtocolRunRuntimeParameters', () => {
151
151
screen . getByText ( 'No offsets' )
152
152
} )
153
153
154
- it ( 'should render mock NoParameter component when RunTimeParameters are empty' , ( ) => {
154
+ it ( 'should render mock InfoScreen component when RunTimeParameters are empty' , ( ) => {
155
155
when ( vi . mocked ( useMostRecentCompletedAnalysis ) )
156
156
. calledWith ( RUN_ID )
157
157
. thenReturn ( {
@@ -160,7 +160,7 @@ describe('ProtocolRunRuntimeParameters', () => {
160
160
render ( props )
161
161
screen . getByText ( 'Parameters' )
162
162
expect ( screen . queryByText ( 'Default values' ) ) . not . toBeInTheDocument ( )
163
- screen . getByText ( 'mock NoParameter ' )
163
+ screen . getByText ( 'mock InfoScreen ' )
164
164
} )
165
165
166
166
// ToDo Additional test will be implemented when chip component is added
0 commit comments