File 061-tests-ui-make-newvm-test-start-less-flakey.patch of Package virt-manager
xxxxxxxxxx
1
Subject: tests: ui: make newvm test start less flakey
2
From: Cole Robinson crobinso@redhat.com Tue Jan 23 08:59:34 2024 -0500
3
Date: Tue Jan 23 09:07:29 2024 -0500:
4
Git: acf3cedbbf85de9dd50c483547e2ea258c529583
5
6
Signed-off-by: Cole Robinson <crobinso@redhat.com>
7
8
diff --git a/tests/uitests/test_createvm.py b/tests/uitests/test_createvm.py
9
index f430c14c..6fe894b4 100644
10
--- a/tests/uitests/test_createvm.py
11
+++ b/tests/uitests/test_createvm.py
12
13
###################
14
15
def _open_newvm(app):
16
- app.root.find("New", "push button").click()
17
+ button = app.root.find("New", "push button")
18
+ # Launching the dialog can be very flakey without this explicit
19
+ # point() call, not sure why
20
+ button.point()
21
+ button.click()
22
return app.find_window("New VM")
23
24
25