[PATCH 02/10] uitests: Don't fail when requiested file is not visible

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

 



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

diff --git a/tests/uitests/addhardware.py b/tests/uitests/addhardware.py
index 5a662d6b..ae5e1153 100644
--- a/tests/uitests/addhardware.py
+++ b/tests/uitests/addhardware.py
@@ -133,7 +133,11 @@ class AddHardware(uiutils.UITestCase):
         browse.find("Browse Local", "push button").click()
         chooser = self.app.root.find(
                 "Locate existing storage", "file chooser")
-        fname = "virt-manager.spec.in"
+
+        # use filename that is near the beginning of the file list when sorted,
+        # as the row in the file dialog may become scrolled out of the view and
+        # cause the test to fail
+        fname = "COPYING"
         chooser.find(fname, "table cell").click()
         chooser.find("Open", "push button").click()
         uiutils.check_in_loop(lambda: not chooser.showing)
-- 
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