I needed to test the presence of a "loading-indicator" in a widget that posted data.
Usually I would have done this with window.setTimeout or something similar: The timeout
simulates the time it takes to complete the network call. But I find that running the whole
test suite for my application takes a long time, and I wanted to avoid these
arbitrary timeout lengths.
Instead I wanted more control of when the loading is done: What if I could hold onto the "loading"-phase in the application until the exact moment I was done checking the presence