From the course: Building React and Django Apps
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
End2End testing the form submission process
From the course: Building React and Django Apps
End2End testing the form submission process
- We're using Cyprus for end to end testing and we're going to ensure that the check out form is working properly. We first, start by visiting the home page and then we use contains, to find an element that has the learn more text. Then we click on it. So that should bring us to the details page and then we click reserve. Now we should be on the check out page. So we can fill in the form by using type. We have to get the, element first and then we type in name for the name field, get the next input field which is email address and we type in email at local host and then we do the same for street address and recall that street address has a unique format that we have to match. So we type in, this and finally the city field. After the form is filled out, we can click the place order button and then we can confirm that there are no errors. We also ensure that the thank you page is being displayed. End to end…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Unit testing a component1m 44s
-
Unit testing two React routes and navigation between components2m 15s
-
End2End testing the form submission process1m 30s
-
End2End testing the filtered data table48s
-
Unit testing caching with Django REST framework50s
-
Unit testing sorting and filtering1m 37s
-
Unit testing validation for the REST API59s
-
-