mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
tests: uitests: Fix manager window repositioning test
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -228,15 +228,17 @@ def testManagerWindowReposition(app):
|
||||
fmenu.find("View Manager", "menu item").click()
|
||||
lib.utils.check(lambda: manager.active)
|
||||
|
||||
manager.window_maximize()
|
||||
newx = manager.position[0]
|
||||
newy = manager.position[1]
|
||||
curxy = manager.title_coordinates()
|
||||
newxy = curxy[0] + 200, curxy[1] + 200
|
||||
import dogtail.rawinput
|
||||
dogtail.rawinput.dragWithTrajectory(curxy, newxy)
|
||||
checkxy = manager.position
|
||||
manager.window_close()
|
||||
host.click_title()
|
||||
host.find("File", "menu").click()
|
||||
host.find("View Manager", "menu item").click()
|
||||
lib.utils.check(lambda: manager.showing)
|
||||
assert manager.position == (newx, newy)
|
||||
assert manager.position == checkxy
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user