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

End2End testing the form submission process

From the course: Building React and Django Apps

Start my 1-month free trial

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…

Contents