[PATCH 10/10] uitests: Use Ctrl_L+Alt_L+Z as a grab keys when testing prefs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Povilas Kanapickas <povilas@xxxxxxxx>
---
 tests/uitests/prefs.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/uitests/prefs.py b/tests/uitests/prefs.py
index c55fc2db..0491da2a 100644
--- a/tests/uitests/prefs.py
+++ b/tests/uitests/prefs.py
@@ -33,6 +33,10 @@ class VMMPrefs(uiutils.UITestCase):
         win.find("Console", "page tab").click()
         win.find("Change...", "push button").click()
         keyframe = self.app.root.find_fuzzy("Configure grab", "dialog")
+
+        # On certain environments pressing "Alt_L" and clicking a window starts
+        # window drag operation. Work around by pushing both Control and Alt.
+        self.holdKey("Control_L")
         self.holdKey("Alt_L")
         self.holdKey("Z")
         try:
@@ -40,6 +44,7 @@ class VMMPrefs(uiutils.UITestCase):
         finally:
             self.releaseKey("Z")
             self.releaseKey("Alt_L")
+            self.releaseKey("Control_L")
 
         win.find("Feedback", "page tab").click()
         win.find_fuzzy(None, "check box",
-- 
2.17.1


_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux