diff --git a/needles/gnome/apps/nautilus/nautilus_view_menu-20240820.json b/needles/gnome/apps/nautilus/nautilus_view_menu-20240820.json new file mode 100644 index 00000000..9f2861cc --- /dev/null +++ b/needles/gnome/apps/nautilus/nautilus_view_menu-20240820.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/nautilus/nautilus_view_menu-20240820.png b/needles/gnome/apps/nautilus/nautilus_view_menu-20240820.png new file mode 100644 index 00000000..33551af2 Binary files /dev/null and b/needles/gnome/apps/nautilus/nautilus_view_menu-20240820.png differ diff --git a/tests/applications/nautilus/hidden_files.pm b/tests/applications/nautilus/hidden_files.pm index b375cce8..bdee646b 100644 --- a/tests/applications/nautilus/hidden_files.pm +++ b/tests/applications/nautilus/hidden_files.pm @@ -9,7 +9,13 @@ sub toggle_hidden { # Toggle hidden files using keyboard short cut or menu. my $type = shift; if ($type eq "menu") { - assert_and_click("gnome_burger_menu"); + my $relnum = get_release_number; + if ($relnum > 40) { + assert_and_click("nautilus_view_menu"); + } + else { + assert_and_click("gnome_burger_menu"); + } wait_still_screen(2); assert_and_click("nautilus_toggle_hidden_files", timeout => '30', button => 'left', mousehide => '1'); sleep(10);