()
return {
...actual,
NoParameters: vi.fn(),
@@ -94,7 +94,9 @@ describe('ProtocolRunRuntimeParameters', () => {
props = {
runId: RUN_ID,
}
- vi.mocked(NoParameters).mockReturnValue(mock NoParameter
)
+ vi.mocked(ProtocolRunEmptyState).mockReturnValue(
+ mock ProtocolRunEmptyState
+ )
when(vi.mocked(useMostRecentCompletedAnalysis))
.calledWith(RUN_ID)
.thenReturn({
@@ -151,7 +153,7 @@ describe('ProtocolRunRuntimeParameters', () => {
screen.getByText('No offsets')
})
- it('should render mock NoParameter component when RunTimeParameters are empty', () => {
+ it('should render mock ProtocolRunEmptyState component when RunTimeParameters are empty', () => {
when(vi.mocked(useMostRecentCompletedAnalysis))
.calledWith(RUN_ID)
.thenReturn({
@@ -160,7 +162,7 @@ describe('ProtocolRunRuntimeParameters', () => {
render(props)
screen.getByText('Parameters')
expect(screen.queryByText('Default values')).not.toBeInTheDocument()
- screen.getByText('mock NoParameter')
+ screen.getByText('mock ProtocolRunEmptyState')
})
// ToDo Additional test will be implemented when chip component is added
diff --git a/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx b/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx
index 69be8a3a468..81c0c0ccee8 100644
--- a/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx
+++ b/app/src/organisms/ProtocolDetails/ProtocolParameters/index.tsx
@@ -4,11 +4,11 @@ import { useTranslation } from 'react-i18next'
import {
DIRECTION_COLUMN,
Flex,
+ ParametersTable,
+ ProtocolRunEmptyState,
SPACING,
StyledText,
TYPOGRAPHY,
- ParametersTable,
- NoParameters,
} from '@opentrons/components'
import { Banner } from '../../../atoms/Banner'
@@ -48,7 +48,7 @@ export function ProtocolParameters({