[virt-tools-list] [virt-manager] [PATCH 4/4] uitests: Add genid tests

Lin Ma lma at suse.com
Tue Mar 26 09:42:35 UTC 2019


Signed-off-by: Lin Ma <lma at suse.com>
---
 tests/uitests/details.py | 1 +
 tests/uitests/newvm.py   | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/tests/uitests/details.py b/tests/uitests/details.py
index 974ff403..4d6279e9 100644
--- a/tests/uitests/details.py
+++ b/tests/uitests/details.py
@@ -92,6 +92,7 @@ class Details(uiutils.UITestCase):
 
         # Overview description
         tab = self._select_hw(win, "Overview", "overview-tab")
+        tab.find("GENID", "check box").click()
         tab.find("Description:", "text").text = "hey new description"
         tab.find("Title:", "text").text = "hey new title"
         appl.click()
diff --git a/tests/uitests/newvm.py b/tests/uitests/newvm.py
index 3fcf01b8..172ddf28 100644
--- a/tests/uitests/newvm.py
+++ b/tests/uitests/newvm.py
@@ -177,6 +177,11 @@ class NewVM(uiutils.UITestCase):
         vmwindow.find_fuzzy("IDE CDROM", "table cell").click()
         self.assertTrue("iso-vol" in vmwindow.find("media-entry").text)
 
+        # Enable genid
+        vmwindow.find_fuzzy("Overview", "table cell").click()
+        vmwindow.find_fuzzy("GENID", "check").click()
+        vmwindow.find_fuzzy("config-apply").click()
+
         # Change boot autostart
         vmwindow.find_fuzzy("Boot", "table cell").click()
         vmwindow.find_fuzzy("Start virtual machine", "check").click()
-- 
2.21.0




More information about the virt-tools-list mailing list