summaryrefslogtreecommitdiff
path: root/tests/uitests
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-01-31 14:10:03 -0500
committerCole Robinson <crobinso@redhat.com>2022-01-31 14:18:42 -0500
commitc3e9db5f3a1935193f8fb5e6a9ef3dcb8332cacd (patch)
treedf2bd40a23024d7f34d0908a8b49cd87a14b0e97 /tests/uitests
parent0a1dd8b82202651b9f61ebc27d7a87db2212b602 (diff)
downloadvirt-manager-c3e9db5f3a1935193f8fb5e6a9ef3dcb8332cacd.tar.gz
createvm: Tweaks to new UEFI pref
* Make it clear in code and UI that this is x86 only. Other arches either require UEFI (aarch64) or don't support it * Drop the internal 'bios' values since we don't handle them and may not want them anyways, since when win11 support lands we will need to explicitly throw an error if the user tries to force bios * Add UI tests Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'tests/uitests')
-rw-r--r--tests/uitests/data/keyfile/uefi.ini13
-rw-r--r--tests/uitests/test_createvm.py3
-rw-r--r--tests/uitests/test_prefs.py1
3 files changed, 16 insertions, 1 deletions
diff --git a/tests/uitests/data/keyfile/uefi.ini b/tests/uitests/data/keyfile/uefi.ini
new file mode 100644
index 00000000..0b12ad57
--- /dev/null
+++ b/tests/uitests/data/keyfile/uefi.ini
@@ -0,0 +1,13 @@
+[org/virt-manager/virt-manager/vmlist-fields]
+disk-usage=false
+network-traffic=false
+
+[org/virt-manager/virt-manager/connections]
+uris=['test:///default']
+autoconnect=['test:///default']
+
+[org/virt-manager/virt-manager/details]
+show-toolbar=true
+
+[org/virt-manager/virt-manager/new-vm]
+firmware=uefi
diff --git a/tests/uitests/test_createvm.py b/tests/uitests/test_createvm.py
index 0c2768d7..d59a3c1d 100644
--- a/tests/uitests/test_createvm.py
+++ b/tests/uitests/test_createvm.py
@@ -375,7 +375,8 @@ def testNewVMURL(app):
New VM with URL and distro detection, plus having fun with
the storage browser and network selection.
"""
- app.uri = tests.utils.URIs.kvm_x86
+ # Also test default UEFI from prefs
+ app.open(keyfile="uefi.ini", uri=tests.utils.URIs.kvm_x86)
newvm = _open_newvm(app)
newvm.find_fuzzy("Network Install", "radio").click()
diff --git a/tests/uitests/test_prefs.py b/tests/uitests/test_prefs.py
index 25c9bdaf..a25ce527 100644
--- a/tests/uitests/test_prefs.py
+++ b/tests/uitests/test_prefs.py
@@ -43,6 +43,7 @@ def testPrefsAll(app):
tab.combo_select("CPU default:", "host-passthrough")
tab.combo_select("Storage format:", "Raw")
tab.combo_select("Graphics type", "VNC")
+ tab.combo_select("x86 Firmware", "UEFI")
win.find("Console", "page tab").click()
tab = consoletab