Skip to content

Commit 8b917d9

Browse files
committed
readme
1 parent 73d8750 commit 8b917d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Integration Testing React Module Project : Contact Form - Testing
22

3-
This module explored the basics of the react-testing library and ideas behind the integration testing methodology. In this project you will practice how to build tests that follow the arrange-act-assert model, different methods of querying for DOM elements in a test and firing user events.
3+
This module explored the basics of the react-testing library and ideas behind the integration testing methodology. In this project you will practice how to build tests that follow the arrange-act-assert model, different methods of querying for DOM elements in a test, the use of different expect types and using async/await to test for changes in state.
44

55
## Testing Web Applications
66

77
## Objectives
88

99
- explain what automated testing is and its importance
1010
- use react-testing-library for testing react components
11-
- use react-testing-library to test user interactions with userEvent/fireEvent
11+
- use react-testing-library to test user interactions with userEvent
12+
- use async / await and waitFor to test changes in a components state.
1213

1314
## Introduction
1415

@@ -43,7 +44,7 @@ As a developer, you will be writing tests for every component. As we've learned,
4344

4445
* [ ] the component renders the contact form component without errors.
4546
* [ ] the header h1 element exists. Include three asserts, if the header is in the document, if the heads is truthy, if the header has the correct test content.
46-
* [ ] the component renders ONE error message if the user enters less than 4 characters into the firstname field.
47+
* [ ] the component renders ONE error message if the user enters less than 4 characters into the firstname field. Make sure to use async / await and the correct screen method to account for state change.
4748
* [ ] the component renders THREE error messages if the user submits without filling in any values.
4849
* [ ] the component renders ONE error message if the user submits without filling in the email field.
4950
* [ ] the component renders the text *"email must be a valid email address"* if an invalid email address is typed into the email field.

0 commit comments

Comments
 (0)