Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed May 16, 2024
1 parent 3bda652 commit cc23b9c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,16 @@ describe('ConfirmPipette', () => {
fireEvent.click(pocBtn)
expect(props.toCalibrationDashboard).toBeCalled()
})
it('should render buttons as disabled when robot is in motion/isDisabled is true', () => {
it('should render buttons as disabled on success when robot is in motion/isDisabled is true', () => {
props = {
...props,
success: true,
isDisabled: true,
}
const { getByRole } = render(props)
expect(getByRole('button', { name: 'exit' })).toBeDisabled()
})
it('should render buttons as disabled on failure when robot is in motion/isDisabled is true', () => {
props = {
...props,
success: false,
Expand Down

0 comments on commit cc23b9c

Please sign in to comment.