Skip to content

Commit 8c246bf

Browse files
chore(app): use action needed instead of calibration needed on odd (#19195)
# Overview clos
1 parent 9f67c57 commit 8c246bf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/src/pages/ODD/ProtocolSetup/__tests__/ProtocolSetup.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,10 @@ describe('ProtocolSetup', () => {
574574
render(`/runs/${RUN_ID}/setup/`)
575575
expect(mockNavigate).toHaveBeenCalledWith('/protocols')
576576
})
577+
578+
it('should show action needed when modules are not calibrated', () => {
579+
vi.mocked(useModuleCalibrationStatus).mockReturnValue({ complete: false })
580+
render(`/runs/${RUN_ID}/setup/`)
581+
expect(screen.getByText('Action needed')).toBeInTheDocument()
582+
})
577583
})

app/src/pages/ODD/ProtocolSetup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function PrepareToRun({
483483
} else if (isMissingModules) {
484484
modulesDetail = missingModulesText
485485
} else if (!moduleCalibrationStatus.complete) {
486-
modulesDetail = t('calibration_required')
486+
modulesDetail = t('action_needed')
487487
} else {
488488
// modules and deck are ready
489489
const hardwareDetail = getConnectedHardwareText(

0 commit comments

Comments
 (0)