Skip to content

Commit

Permalink
style(app): capitalize exit in UnskippableModal
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Apr 9, 2024
1 parent 88c3f2c commit bdca9ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/organisms/PipetteWizardFlows/UnskippableModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function UnskippableModal(props: UnskippableModalProps): JSX.Element {
<SmallButton
marginRight={SPACING.spacing8}
onClick={proceed}
buttonText={t('shared:exit')}
buttonText={i18n.format(t('shared:exit'), 'capitalize')}
buttonType="alert"
disabled={isRobotMoving}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ describe('UnskippableModal', () => {
screen.getByText(
'You must detach the mounting plate and reattach the z-axis carraige before using other pipettes. We do not recommend exiting this process before completion.'
)
fireEvent.click(screen.getByRole('button', { name: 'exit' }))
screen.getByText('Exit')
screen.getByText('Go back')
fireEvent.click(screen.getByRole('button', { name: 'Exit' }))
expect(props.proceed).toHaveBeenCalled()
})
})

0 comments on commit bdca9ce

Please sign in to comment.