The tests sometimes fail with:
ValueError: Attempting to generate a mouse event at negative
This is because the UI isn't drawn when we try to interact with it.
This is a race condition. We should wait until the x or y coordinate
is valid before going on with the test.