Skip to content

Commit

Permalink
fix reviewsubmit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Apr 18, 2024
1 parent 7ee8429 commit 8b09893
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { screen, waitFor } from '@testing-library/react'
import {
renderWithProviders,
userClickByRole,
} from '../../../../../testHelpers/jestHelpers'
import { renderWithProviders } from '../../../../../testHelpers/jestHelpers'
import { ReviewSubmitV2 } from './ReviewSubmitV2'
import {
fetchCurrentUserMock,
Expand Down Expand Up @@ -212,7 +209,7 @@ describe('ReviewSubmit', () => {
})

expect(screen.getByTestId('form-submit')).toBeDefined()
expect(screen.getByText('Submit')).toBeInTheDocument()
await userClickByRole(screen, 'button', { name: 'Submit' })
expect(screen.getAllByText('Submit')).toHaveLength(2)
await screen.getAllByText('Submit')[0].click()
})
})

0 comments on commit 8b09893

Please sign in to comment.