1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Fix nautilus hidden_files test with Nautilus 47

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-08-20 15:17:02 -07:00
parent 80236fdb9b
commit 1cbb7ba2af
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,19 @@
{
"area": [
{
"height": 23,
"width": 47,
"xpos": 927,
"type": "match",
"ypos": 44,
"click_point": {
"xpos": 38.5,
"ypos": 12.5
}
}
],
"properties": [],
"tags": [
"nautilus_view_menu"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -9,7 +9,13 @@ sub toggle_hidden {
# Toggle hidden files using keyboard short cut or menu. # Toggle hidden files using keyboard short cut or menu.
my $type = shift; my $type = shift;
if ($type eq "menu") { if ($type eq "menu") {
my $relnum = get_release_number;
if ($relnum > 40) {
assert_and_click("nautilus_view_menu");
}
else {
assert_and_click("gnome_burger_menu"); assert_and_click("gnome_burger_menu");
}
wait_still_screen(2); wait_still_screen(2);
assert_and_click("nautilus_toggle_hidden_files", timeout => '30', button => 'left', mousehide => '1'); assert_and_click("nautilus_toggle_hidden_files", timeout => '30', button => 'left', mousehide => '1');
sleep(10); sleep(10);