Expected behaviour:
The pytest function ‘test_supports_paging_text(client)’ should reliably pass/fail for the same code.
Actual behaviour:
The test somtimes passes and sometimes fails for the same code
Workaround:
Continue to refresh status page in mflix application until I get a token for the paging test. This token was then accepted by the quiz.
Observations:
The test reliably fails at "assert movies2[0].get(‘title’) == “Ugetsu”
Diagnosis:
This is cause by search scoring being the same for certain results and therefore the ordering of results with the same score being random (see screenshot of tests in Jupyter)