summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-02-19 10:25:47 -0500
committerCole Robinson <crobinso@redhat.com>2022-02-19 10:44:29 -0500
commit9c0a132f2ad99e1067ca5b7126f71e3885174aca (patch)
treea0dae99e208aabb31bd9b4761e871d4f342f2324 /tests
parenta7682fc9ebedf90c8ab69ec305f4867669f55c57 (diff)
downloadvirt-manager-9c0a132f2ad99e1067ca5b7126f71e3885174aca.tar.gz
fsdetails: Point users to Memory screen if shared memory not enabled
If the user selects virtiofs when editting or adding a new VM, and we don't detect that they have shared memory enabled, show a warning label in the UI pointing them to the Memory screen. It would be nicer if we did this for them, but to get that totally correct would require both duplicating libvirt's shared memory detection logic, and some surgery to the addhw wizard. This is good enough for now Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/uitests/test_details.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/uitests/test_details.py b/tests/uitests/test_details.py
index 0110b224..f823c9ef 100644
--- a/tests/uitests/test_details.py
+++ b/tests/uitests/test_details.py
@@ -588,6 +588,7 @@ def testDetailsEditDevices1(app):
def testDetailsEditDevices2(app):
+ app.uri = tests.utils.URIs.kvm_x86
win = app.manager_open_details("test-many-devices",
shutdown=True)
appl = win.find("config-apply", "push button")
@@ -617,6 +618,9 @@ def testDetailsEditDevices2(app):
# Filesystem tweaks
tab = _select_hw(app, win, "Filesystem /target/", "filesystem-tab")
+ tab.combo_select("Driver:", "virtiofs")
+ w = tab.find_fuzzy("Enable shared memory", "label")
+ lib.utils.check(lambda: w.visible)
tab.find("Source path:", "text").set_text("/frib1")
tab.find("Target path:", "text").set_text("newtarget")
tab.find_fuzzy("Export filesystem", "check box").click()