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