Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Dec 14, 2023
1 parent 234fe65 commit 3faa5b2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import NiceModal from '@ebay/nice-modal-react'
import { fireEvent } from '@testing-library/react'
import { fireEvent, queryAllByText } from '@testing-library/react'

Check failure on line 3 in app/src/pages/OnDeviceDisplay/InstrumentDetail/__tests__/InstrumentDetailOverflowMenu.test.tsx

View workflow job for this annotation

GitHub Actions / js checks

'queryAllByText' is defined but never used

Check failure on line 3 in app/src/pages/OnDeviceDisplay/InstrumentDetail/__tests__/InstrumentDetailOverflowMenu.test.tsx

View workflow job for this annotation

GitHub Actions / js checks

'queryAllByText' is defined but never used

import { renderWithProviders } from '@opentrons/components'
import { getPipetteModelSpecs } from '@opentrons/shared-data'
Expand Down Expand Up @@ -157,12 +157,12 @@ describe('UpdateBuildroot', () => {
})

it('renders the drop tip wizard when Drop tips is clicked', () => {
const [{ getByTestId, getByText }] = render(MOCK_PIPETTE)
const [{ getByTestId, getByText, getAllByText }] = render(MOCK_PIPETTE)
const btn = getByTestId('testButton')
fireEvent.click(btn)
fireEvent.click(getByText('Drop tips'))

getByText('Before you begin, do you need to preserve aspirated liquid?')
expect(getAllByText('Drop tips')).toHaveLength(2)
})

it('renders the gripper calibration wizard when recalibrate is clicked', () => {
Expand Down

0 comments on commit 3faa5b2

Please sign in to comment.