From 783f6effaf4adaf2096c4ddadebd4bf9321aab61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 23 Aug 2024 04:39:43 +0200 Subject: [PATCH] tests/dispvm: fix for small resolution Recent Thunderbird opens a message in a window no fitting on 1024x768 by default. This makes the attachment button off-screen so clicking it doesn't work. Fix it by resizing the window. --- tests-data/dispvm-open-thunderbird-attachment | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests-data/dispvm-open-thunderbird-attachment b/tests-data/dispvm-open-thunderbird-attachment index 3b7234ac8..8ab88edcb 100644 --- a/tests-data/dispvm-open-thunderbird-attachment +++ b/tests-data/dispvm-open-thunderbird-attachment @@ -82,6 +82,9 @@ def skip_autoconf2(tb): def open_attachment(tb, name): # message subject msg = tb.child(name='Test Message - .*', roleName='frame') + # resize the window so that button is on screen even on 1024x768 + subprocess.call(["xdotool", "search", "Test Message", "windowsize", "900", "700"]) + time.sleep(1) msg.button(name).click() confirm = tb.child(name='Opening ' + name, roleName='frame') time.sleep(3)