Skip to content

Commit

Permalink
fix: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanguinho committed Sep 25, 2020
1 parent cc5adb5 commit 6f08397
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/presentation/pages/survey-result/survey-result.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ describe('SurveyResult Component', () => {
await waitFor(() => screen.getByTestId('survey-result'))
const answersWrap = screen.queryAllByTestId('answer-wrap')
fireEvent.click(answersWrap[1])
await waitFor(() => screen.getByTestId('survey-result'))
fireEvent.click(answersWrap[1])
fireEvent.click(answersWrap[0])
await waitFor(() => screen.getByTestId('survey-result'))
expect(saveSurveyResultSpy.callsCount).toBe(1)
})
Expand Down

0 comments on commit 6f08397

Please sign in to comment.