September 2018
Intermediate to advanced
764 pages
20h 6m
English
We will begin development by first writing E2E tests. In the previous chapter, we already tested a scenario where the profile is not supplied. In these new E2E tests, we will add two more scenarios where the client provides a profile object—one using an invalid profile, the other a valid one.
Therefore, we must first decide what constitutes a valid profile; in other words, what should the structure of our profile object be? There are no right or wrong answers, but for this book, we will use the following structure:
{ "name": { "first": <string>, "last": <string>, "middle": <string> }, "summary": <string>, "bio": <string>}
All of the fields are optional, but if they are provided, they must be of the correct ...
Read now
Unlock full access