mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
uitests: Add dbus remote cli test
This commit is contained in:
parent
3ccb947ce3
commit
c87bb3937d
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user