uitests: Make createpool test less flaky

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-08-25 16:15:43 -04:00
parent d140596ce9
commit 8f76c97705
1 changed files with 3 additions and 2 deletions

View File

@ -123,13 +123,14 @@ class CreatePool(uiutils.UITestCase):
win.find_fuzzy("Host Name:", "text").text = "example.com:1234"
win.find_fuzzy("pool-source-name-text", "text").typeText("frob")
finish.click()
uiutils.check(lambda: not win.showing)
uiutils.check(lambda: hostwin.active)
hostwin.find(newname, "table cell")
# Ensure host window closes fine
hostwin.click()
hostwin.keyCombo("<ctrl>w")
uiutils.check(lambda: not hostwin.showing and
not hostwin.active)
uiutils.check(lambda: not hostwin.showing)
def testCreatePoolXMLEditor(self):