uitests: Add dbus remote cli test

This commit is contained in:
Cole Robinson 2018-01-19 18:04:15 -05:00
parent 3ccb947ce3
commit c87bb3937d
2 changed files with 15 additions and 3 deletions

View File

@ -55,3 +55,18 @@ class VMMCLI(uiutils.UITestCase):
self.assertFalse(
self.app.topwin.find_fuzzy(
"add-hardware", "button").showing)
def testShowRemoteConnect(self):
"""
Test the remote app dbus connection
"""
self.app.open()
newapp = uiutils.VMMDogtailApp("test:///default")
newapp.open()
uiutils.check_in_loop(lambda: not newapp.is_running())
import dogtail.tree
vapps = [a for a in dogtail.tree.root.applications() if
a.name == "virt-manager"]
self.assertEqual(len(vapps), 1)
self.app.topwin.find("test default", "table cell")

View File

@ -60,9 +60,6 @@ class UITestCase(unittest.TestCase):
check_in_loop(lambda: run.sensitive)
return win
##############
def _walkUIList(self, win, lst, error_cb):
"""
Toggle down through a UI list like addhardware, net/storage/iface