Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Apr 4, 2024
1 parent 591d67b commit 63460b7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ describe('TipPositionModal', () => {
fireEvent.click(screen.getByRole('radio', { name: 'Custom' }))
expect(screen.getAllByRole('textbox', { name: '' })).toHaveLength(3)
screen.getByText('X position')
screen.getByText('between -5.15 and 5.15')
screen.getByText('between -5.1 and 5.2')
screen.getByText('Y position')
screen.getByText('between -5.25 and 5.25')
screen.getByText('between -5.2 and 5.3')
screen.getByText('Z position')
screen.getByText('between 0 and 100')
screen.getByText('mock TipPositionViz')
Expand Down Expand Up @@ -129,8 +129,8 @@ describe('TipPositionModal', () => {
fireEvent.click(screen.getByText('done'))
// display out of bounds error
screen.getByText('accepted range is 0 to 100')
screen.getByText('accepted range is -5.25 to 5.25')
screen.getByText('accepted range is -5.15 to 5.15')
screen.getByText('accepted range is -5.2 to 5.3')
screen.getByText('accepted range is -5.1 to 5.2')
const xInputField = screen.getAllByRole('textbox', { name: '' })[0]
fireEvent.change(xInputField, { target: { value: 3.55555 } })
fireEvent.click(screen.getByText('done'))
Expand Down

0 comments on commit 63460b7

Please sign in to comment.