diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-01-15 09:56:47 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-01-15 09:57:33 -0500 |
commit | e7c822bf8f9171f49c75b9c1f19e4e9b52678316 (patch) | |
tree | 0cb8ce50d17669db7586dc34907f4260216187db | |
parent | d8d71bddfbf1a578350e3deaac330b5ce4ec22ff (diff) | |
download | virt-manager-e7c822bf8f9171f49c75b9c1f19e4e9b52678316.tar.gz |
uitests: connect: Fix failure case to always fail
-rw-r--r-- | tests/uitests/connect.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/uitests/connect.py b/tests/uitests/connect.py index 27e458a2..a781a06d 100644 --- a/tests/uitests/connect.py +++ b/tests/uitests/connect.py @@ -51,11 +51,16 @@ class VMMConnect(uiutils.UITestCase): meth.click() win.find_fuzzy("Kerberos", "menu item").click() user.text = "fribuser" - host.text = "redhat.com:12345" + fakehost = "ix8khfyidontexistkdjur.com" + host.text = fakehost + ":12345" self.assertTrue( - urilabel.text == "xen+tcp://fribuser@redhat.com:12345/") + urilabel.text == "xen+tcp://fribuser@%s:12345/" % fakehost) connect.click() + uiutils.check_in_loop(lambda: win.showing is False) + c = self.app.root.find_fuzzy(fakehost, "table cell") + uiutils.check_in_loop(lambda: "Connecting..." not in c.text, + timeout=10) err = self.app.root.find_fuzzy("vmm dialog", "alert") err.find_fuzzy("No", "push button").click() |