tests: uitests: Make NewVMManual more robust

There's a timing issue with changing pages

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-02-03 05:16:35 -05:00
parent bea5e56c26
commit c0c69b1708

View File

@ -98,11 +98,13 @@ class NewVM(uiutils.UITestCase):
uiutils.check_in_loop(lambda: osentry.text == "Generic default") uiutils.check_in_loop(lambda: osentry.text == "Generic default")
# Verify back+forward still keeps Generic selected # Verify back+forward still keeps Generic selected
self.sleep(.5)
newvm.find_fuzzy("Back", "button").click() newvm.find_fuzzy("Back", "button").click()
self.sleep(.2) self.sleep(.5)
self.forward(newvm) self.forward(newvm)
self.sleep(.2) self.sleep(.5)
uiutils.check_in_loop(lambda: "Generic" in osentry.text) uiutils.check_in_loop(lambda: "Generic" in osentry.text)
uiutils.check_in_loop(lambda: osentry.onscreen)
# The sleeps shouldn't be required, but this test continues to be # The sleeps shouldn't be required, but this test continues to be
# flakey, so this is an attempt to fix it. # flakey, so this is an attempt to fix it.