GNOME Bugzilla – Bug 777053
tests: Wait for the UI to be drawn completely
Last modified: 2017-01-26 17:06:51 UTC
We're noticing in Debian that there's a race in the testsuite. I don't know if there's a way to do this properly in dogtail - looked at the docs and couldn't find anything, but maybe I just missed it.
Created attachment 343177 [details] [review] tests: Wait for the UI to be drawn completely We have been seeing tests fail with ValueError: Attempting to generate a mouse event at negative coordinates: (-2147483647.5,-2147483647.5) because the UI isn't drawn when we try to interact with it. This is a race condition. Wait until the x or y coordinate is valid before going on with the test.
Created attachment 343183 [details] [review] Forgot to import 'time'
Review of attachment 343183 [details] [review]: Yes, I have seen this problem occasionally. Thanks for digging into it, Laney!