Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a test for the NewsItem component #2345

Merged
merged 2 commits into from Aug 21, 2020
Merged

Adds a test for the NewsItem component #2345

merged 2 commits into from Aug 21, 2020

Conversation

jgreben
Copy link
Contributor

@jgreben jgreben commented Aug 19, 2020

Fixes #2275

If there is a better way to narrow the rendered listitems to just the specific component I could more precisely test the length of the list.

__tests__/feature/readNews.test.js Outdated Show resolved Hide resolved
@jermnelson
Copy link
Contributor

jermnelson commented Aug 19, 2020

Fixes #2275

If there is a better way to narrow the rendered listitems to just the specific component I could more precisely test the length of the list.

The number of items varies depending on PO, but we should always have at least have one item. Looks good!

@jermnelson jermnelson merged commit cb0e2e7 into master Aug 21, 2020
@jermnelson jermnelson deleted the read-news-test branch August 21, 2020 16:13
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.

Write feature tests for reading news
2 participants