Fix the rotation test by using a keyboard shortcut.

This commit is contained in:
Lukáš Růžička 2021-10-15 12:01:46 +02:00
parent 95fefe87e6
commit e519786e91
5 changed files with 2 additions and 35 deletions

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 784,
"type": "match",
"ypos": 421,
"width": 61,
"height": 18
}
],
"properties": [],
"tags": [
"evince_menu_rotate"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 18,
"width": 61,
"type": "match",
"ypos": 422,
"xpos": 784
}
],
"properties": [],
"tags": [
"evince_menu_rotate"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

View File

@ -7,11 +7,8 @@ use utils;
sub rotate_content {
# Open the application menu
assert_and_click("gnome_burger_menu", button => "left", timeout => 30);
# Click with the *left* button (needle click area might need some correction)
assert_and_click("evince_menu_rotate", button => "left", timeout => 30);
# Send the key combo to rotate the content
send_key("ctrl-right");
}
sub run {