la2texas
8 years agoOccasional Contributor
Wait on a UI refresh
We have a test that is expecting a DevExpress grid to contain one item, but it fails intermittently.
It's all dependent on how fast the Web API responds with the list of items.
How can I instruct TestLeft to "wait a few seconds". Please note that the Window.TryFind() with a wait does not work, because the window is nearly immediately available, but the API call has not come back yet. We just need a few seconds of hold time to ensure the Web API call has returned before evaluating.