[virt-tools-list] [PATCH 02/10] uitests: Don't fail when requiested file is not visible
Povilas Kanapickas
povilas at radix.lt
Sat Sep 1 22:18:49 UTC 2018
Signed-off-by: Povilas Kanapickas <povilas at radix.lt>
---
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
More information about the virt-tools-list
mailing list