@@ -189,7 +189,7 @@ Now, it just uses a page object for the search page instead of raw calls.
189189
190190After writing the search page class, the result page class will be straightforward.
191191It will follow the same structure.
192- The main difference is that each interaction methods  in the result page class will return a value
192+ The main difference is that each interaction method  in the result page class will return a value
193193because test assertions will check page values.
194194
195195Start by adding the following imports for type checking to ` pages/result.py ` :
@@ -244,11 +244,11 @@ it is concatenated with the N-th element fetcher to wait for at least 5 elements
244244The second time it is called,
245245it gets all the text contents for the elements it finds.
246246
247- The second method takes in a search phases  and a minimum limit for matches.
247+ The second method takes in a search phrase  and a minimum limit for matches.
248248It calls the first method to get the list of titles,
249249filters the titles using a list comprehension,
250250and returns a Boolean value indicating if the number of matches meets the minimum threshold.
251- Notice that this method does ** not**  perform an asssertion .
251+ Notice that this method does ** not**  perform an assertion .
252252Assertions should * not*  be done in page objects.
253253They should only be done in test cases.
254254
0 commit comments