Skip to content

React testing task#6

Open
prokhorovd wants to merge 16 commits into
react-reduxfrom
react-testing
Open

React testing task#6
prokhorovd wants to merge 16 commits into
react-reduxfrom
react-testing

Conversation

@prokhorovd
Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/components/ArticleBox.test.tsx Outdated
// screen.debug();
it('shows data received from api', () => {
// expect(screen.getByText(new RegExp(testData.author, 'i'))).toBeInTheDocument();
expect(screen.getByText(testData.title, { exact: false })).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.

consider adding testIDs for getting elements)

Comment thread src/components/ArticleBox.test.tsx Outdated
Comment thread src/components/ArticleBox.test.tsx Outdated
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.

2 participants