Skip to content

fix: added components tests to increase coverage to 80%#341

Open
ash-wright123 wants to merge 8 commits into
aw/CT-2264_src_testsfrom
aw/CT-2264_components_tests
Open

fix: added components tests to increase coverage to 80%#341
ash-wright123 wants to merge 8 commits into
aw/CT-2264_src_testsfrom
aw/CT-2264_components_tests

Conversation

@ash-wright123

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/components/ConnectInstitutionHeader-test.tsx Outdated
Comment thread src/components/ConnectInstitutionHeader-test.tsx Outdated
Comment thread src/components/Container-test.tsx Outdated
Comment thread src/components/DeleteMemberSurvey-test.tsx Outdated
Comment thread src/components/DeleteMemberSurvey-test.tsx Outdated
Comment thread src/components/DeleteMemberSurvey-test.tsx Outdated
Comment thread src/components/DeleteMemberSurvey-test.tsx Outdated
Comment thread src/components/DetailReviewItem-test.tsx Outdated
Comment thread src/components/DetailReviewItem-test.tsx Outdated
Comment thread src/components/ConnectInstitutionHeader.js
Comment thread src/components/ConnectInstitutionHeader.js Outdated
Comment thread src/components/ConnectInstitutionHeader.js Outdated
})

const stepWrapper = container.firstChild
expect(stepWrapper).toBeInTheDocument()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we know for sure that stepWrapper corresponds to the Search view that was rendered? I think this could be improved by checking whether for example, the Select your institution text is rendered for the Search step. That would give us more confidence that the correct view is being displayed.

Similar comment for the other views as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants