uitests: fix coverage with scaling default change

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-11-05 09:41:30 -05:00 committed by Pavel Hrdina
parent 715acbf541
commit 97ab16a73d
2 changed files with 5 additions and 5 deletions

View File

@ -113,6 +113,10 @@ def _checkConsoleStandard(app, dom):
# 'Resize to VM' testing
oldsize = win.size
win.find("^View$", "menu").click()
scalemenu = win.find("Scale Display", "menu")
scalemenu.point()
scalemenu.find("Never", "radio menu item").click()
win.find("^View$", "menu").click()
win.find("Resize to VM", "menu item").click()
newsize = win.size
lib.utils.check(lambda: oldsize != newsize)
@ -152,10 +156,6 @@ def _checkConsoleStandard(app, dom):
win.find("^View$", "menu").click()
scalemenu = win.find("Scale Display", "menu")
scalemenu.point()
scalemenu.find("Never", "radio menu item").click()
win.find("^View$", "menu").click()
scalemenu = win.find("Scale Display", "menu")
scalemenu.point()
scalemenu.find("Only", "radio menu item").click()
win.find("^View$", "menu").click()
scalemenu = win.find("Scale Display", "menu")

View File

@ -50,7 +50,7 @@ def testPrefsAll(app):
tab.check_onscreen()
tab.combo_select("SPICE USB", "Manual redirect")
tab.combo_select("Resize guest", "On")
tab.combo_select("Graphical console scaling", "Always")
tab.combo_select("Graphical console scaling", "Never")
tab.find("Console autoconnect", "check box").click()
tab.find("Change...", "push button").click()