Skip to content

Commit

Permalink
tests/dispvm: fix for small resolution
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marmarek committed Aug 23, 2024
1 parent c6cd538 commit 783f6ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests-data/dispvm-open-thunderbird-attachment
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 783f6ef

Please sign in to comment.