You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when I use delay response in ui test, and in this response I return some value to assert in UI test, delayed response sometimes come after I made assertion.
So, first I mock response with delay like this router["/api/v2/users"] = DelayResponse(JSONResponse(......)), and after I assert value I got from response file, or assert ui element that I enabled in this mocked response. So this kind of tests are flaky, because depending on delay time, it gives back response after assertion.
Deleting delay response solves this flakiness. But why it happens with DelayResponse?
The text was updated successfully, but these errors were encountered:
Hello guys,
I noticed that when I use delay response in ui test, and in this response I return some value to assert in UI test, delayed response sometimes come after I made assertion.
So, first I mock response with delay like this
router["/api/v2/users"] = DelayResponse(JSONResponse(......))
, and after I assert value I got from response file, or assert ui element that I enabled in this mocked response. So this kind of tests are flaky, because depending on delay time, it gives back response after assertion.Deleting delay response solves this flakiness. But why it happens with DelayResponse?
The text was updated successfully, but these errors were encountered: