#261 Create a test suite for Nautilus.
Merged 2 years ago by adamwill. Opened 2 years ago by lruzicka.

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "height": 16,

+       "width": 55,

+       "xpos": 547,

+       "ypos": 226,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_about_credits"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 464,

+       "ypos": 329,

+       "width": 98,

+       "height": 102,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_about_show"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "width": 141,

+       "height": 362,

+       "ypos": 107,

+       "xpos": 198,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_available_directories"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_browse_shown"

+   ],

+   "area": [

+     {

+       "xpos": 9,

+       "ypos": 125,

+       "width": 389,

+       "height": 36,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_confirm_wastebin"

+   ],

+   "area": [

+     {

+       "xpos": 92,

+       "ypos": 46,

+       "width": 65,

+       "height": 20,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_context_copy_to"

+   ],

+   "area": [

+     {

+       "xpos": 342,

+       "ypos": 461,

+       "width": 68,

+       "height": 20,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_context_move_to"

+   ],

+   "area": [

+     {

+       "xpos": 335,

+       "ypos": 431,

+       "width": 72,

+       "height": 21,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_context_properties"

+   ],

+   "area": [

+     {

+       "xpos": 337,

+       "ypos": 615,

+       "width": 73,

+       "height": 22,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_context_star"

+   ],

+   "area": [

+     {

+       "xpos": 306,

+       "ypos": 394,

+       "width": 35,

+       "height": 35,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "width": 291,

+       "height": 21,

+       "xpos": 379,

+       "ypos": 446,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_credits_shown"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_delete_undo"

+   ],

+   "area": [

+     {

+       "xpos": 665,

+       "ypos": 96,

+       "width": 66,

+       "height": 21,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "height": 20,

+       "type": "match",

+       "xpos": 202,

+       "width": 117,

+       "ypos": 163

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_directory_documents"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "type": "match",

+       "height": 20,

+       "width": 100,

+       "xpos": 16,

+       "ypos": 205

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_directory_documents"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_directory_downloads"

+   ],

+   "area": [

+     {

+       "xpos": 12,

+       "ypos": 244,

+       "width": 103,

+       "height": 20,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 91,

+       "ypos": 45,

+       "width": 170,

+       "height": 21,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_directory_reached_downloads"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_directory_starred"

+   ],

+   "area": [

+     {

+       "xpos": 13,

+       "ypos": 128,

+       "width": 79,

+       "height": 25,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 12,

+       "ypos": 317,

+       "width": 75,

+       "height": 27,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_directory_videos"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 13,

+       "ypos": 204,

+       "width": 103,

+       "height": 21,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_documents_active"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 235,

+       "height": 22,

+       "type": "match",

+       "width": 82,

+       "ypos": 162

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_documents_folder"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 251,

+       "ypos": 165,

+       "width": 82,

+       "height": 22,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_documents_folder"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 8,

+       "ypos": 254,

+       "width": 105,

+       "height": 24,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_help_browse_files"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_help_search_file"

+   ],

+   "area": [

+     {

+       "xpos": 151,

+       "ypos": 524,

+       "width": 107,

+       "height": 18,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 8,

+       "ypos": 125,

+       "width": 358,

+       "height": 41,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_help_shown"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_hidden_file_shown"

+   ],

+   "area": [

+     {

+       "xpos": 207,

+       "ypos": 617,

+       "width": 122,

+       "height": 35,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,22 @@ 

+ {

+   "area": [

+     {

+       "xpos": 277,

+       "ypos": 464,

+       "width": 70,

+       "height": 51,

+       "type": "match"

+     },

+     {

+       "xpos": 675,

+       "ypos": 466,

+       "width": 72,

+       "height": 46,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_instances_check"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "type": "match",

+       "width": 75,

+       "height": 18,

+       "ypos": 347,

+       "xpos": 846

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_menu_about"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 959,

+       "ypos": 110,

+       "width": 29,

+       "height": 21,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_menu_new_directory"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 857,

+       "ypos": 108,

+       "width": 22,

+       "height": 21,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_menu_new_instance"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 907,

+       "ypos": 110,

+       "width": 28,

+       "height": 21,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_menu_new_tab"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_menu_shortcuts"

+   ],

+   "area": [

+     {

+       "xpos": 847,

+       "ypos": 294,

+       "width": 130,

+       "height": 22,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "type": "match",

+       "ypos": 210,

+       "width": 95,

+       "height": 22,

+       "xpos": 240

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_new_directory_check"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 245,

+       "ypos": 255,

+       "width": 92,

+       "height": 22,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_new_directory_check"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "ypos": 429,

+       "width": 146,

+       "type": "match",

+       "height": 72,

+       "xpos": 381

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_others_permissions"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_owner_permissions"

+   ],

+   "area": [

+     {

+       "xpos": 381,

+       "ypos": 254,

+       "width": 187,

+       "height": 78,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 439,

+       "ypos": 441,

+       "width": 158,

+       "height": 66,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_permissions_read_only"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 439,

+       "ypos": 436,

+       "width": 66,

+       "height": 24,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_permissions_set_none"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "ypos": 330,

+       "width": 307,

+       "type": "match",

+       "height": 95,

+       "xpos": 354

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_properties_check"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "height": 18,

+       "xpos": 240,

+       "width": 89,

+       "ypos": 211,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_rename_check"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_rename_dialogue"

+   ],

+   "area": [

+     {

+       "xpos": 190,

+       "ypos": 263,

+       "width": 128,

+       "height": 24,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_restore_content"

+   ],

+   "area": [

+     {

+       "xpos": 837,

+       "ypos": 129,

+       "width": 55,

+       "height": 21,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_search_file_shown"

+   ],

+   "area": [

+     {

+       "xpos": 4,

+       "ypos": 208,

+       "width": 146,

+       "height": 54,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_select_permissions"

+   ],

+   "area": [

+     {

+       "xpos": 402,

+       "ypos": 203,

+       "width": 93,

+       "height": 22,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_select_wastebin"

+   ],

+   "area": [

+     {

+       "xpos": 14,

+       "ypos": 396,

+       "width": 66,

+       "height": 21,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,22 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_shortcuts_first"

+   ],

+   "area": [

+     {

+       "xpos": 60,

+       "ypos": 114,

+       "width": 61,

+       "height": 19,

+       "type": "match"

+     },

+     {

+       "xpos": 444,

+       "ypos": 115,

+       "width": 65,

+       "height": 20,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,22 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_shortcuts_second"

+   ],

+   "area": [

+     {

+       "xpos": 60,

+       "ypos": 114,

+       "width": 39,

+       "height": 19,

+       "type": "match"

+     },

+     {

+       "xpos": 527,

+       "ypos": 112,

+       "width": 82,

+       "height": 24,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,22 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_shortcuts_third"

+   ],

+   "area": [

+     {

+       "xpos": 59,

+       "ypos": 114,

+       "width": 41,

+       "height": 18,

+       "type": "match"

+     },

+     {

+       "xpos": 474,

+       "ypos": 115,

+       "width": 55,

+       "height": 19,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_show_sidebar"

+   ],

+   "area": [

+     {

+       "xpos": 843,

+       "ypos": 234,

+       "width": 97,

+       "height": 22,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "type": "match",

+       "height": 294,

+       "width": 117,

+       "xpos": 5,

+       "ypos": 127

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_side_panel"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_side_panel"

+   ],

+   "area": [

+     {

+       "xpos": 5,

+       "ypos": 127,

+       "width": 117,

+       "height": 294,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_star_confirm"

+   ],

+   "area": [

+     {

+       "xpos": 989,

+       "ypos": 438,

+       "width": 25,

+       "height": 26,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 92,

+       "ypos": 46,

+       "width": 76,

+       "height": 20,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_starred_selected"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,22 @@ 

+ {

+   "area": [

+     {

+       "xpos": 352,

+       "ypos": 88,

+       "width": 90,

+       "height": 32,

+       "type": "match"

+     },

+     {

+       "xpos": 782,

+       "ypos": 86,

+       "width": 69,

+       "height": 31,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_tabs_check"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 239,

+       "height": 21,

+       "type": "match",

+       "ypos": 164,

+       "width": 98

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_test_file"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "ypos": 164,

+       "width": 116,

+       "type": "match",

+       "height": 20,

+       "xpos": 200

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_test_file_another"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "ypos": 117,

+       "width": 116,

+       "type": "match",

+       "height": 20,

+       "xpos": 201

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_test_file_another"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "type": "match",

+       "xpos": 205,

+       "ypos": 117,

+       "height": 20,

+       "width": 116

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_test_file_another"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "type": "match",

+       "width": 94,

+       "ypos": 117,

+       "xpos": 240,

+       "height": 21

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_test_file"

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "nautilus_toggle_hidden_files"

+   ],

+   "area": [

+     {

+       "xpos": 846,

+       "ypos": 210,

+       "width": 124,

+       "height": 19,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "width": 24,

+       "height": 23,

+       "ypos": 44,

+       "xpos": 875,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "nautilus_toggle_view"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "area": [

+     {

+       "xpos": 956,

+       "ypos": 45,

+       "width": 46,

+       "height": 20,

+       "type": "match"

+     }

+   ],

+   "properties": [],

+   "tags": [

+     "gnome_select_button"

+   ]

+ } 

\ No newline at end of file

empty or binary file added
file modified
+17
@@ -1101,6 +1101,23 @@ 

                  "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"

              }

          },

+         "nautilus": {

+             "profiles": {

+                 "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,

+                 "fedora-Silverblue-dvd_ostree-iso-x86_64-*-64bit": 50,

+                 "fedora-Workstation-live-iso-ppc64le-*-ppc64le": 20,

+                 "fedora-Workstation-live-iso-x86_64-*-64bit": 20,

+                 "fedora-Workstation-upgrade-x86_64-*-64bit": 40,

+                 "fedora-Workstation-upgrade-aarch64-*-aarch64": 40,

+                 "fedora-Workstation-raw_xz-raw.xz-aarch64-*-aarch64": 22

+             },

+             "settings": {

+                 "BOOTFROM": "c",

+                 "HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",

+                 "POSTINSTALL_PATH": "tests/applications/nautilus",

+                 "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"

+             }

+         },

          "gnome_text_editor": {

              "profiles": {

                  "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,

@@ -0,0 +1,52 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # This script will download the test files, start Nautilus, 

+ # stretch it all over the screen and upload the status to

+ # set a milestone as a starting point for the other Nautilus tests.

+ 

+ sub run {

+     my $self = shift;

+     # Switch to console

+     $self->root_console(tty=>3);

+     # Perform git test

+     check_and_install_git();

+     # Download the test data

+     download_testdata();

+ 

+     enter_cmd("touch /home/test/Documents/.invisible.txt");

+     enter_cmd("chown test:test /home/test/Documents/.invisible.txt");

+     enter_cmd("rm -f /home/test/*reference*");

+ 

+     # Exit the terminal

+     desktop_vt;

+ 

+     # Start the application

+     menu_launch_type("nautilus");

+     wait_still_screen("2");

+     

+     # Fullsize the Nautilus window.

+     wait_screen_change { send_key("super-up"); };

+     

+     # Check that is started

+     assert_screen 'apps_run_files';

+ 

+     # Click to change the Directory view to listings.

+     assert_and_click("nautilus_toggle_view", timeout => '30', button => 'left', mousehide => '1');

+ 

+     # This will test the common directory structure. The structure is always created when a user is created, so let's see if it has been created correctly.

+     assert_screen("nautilus_available_directories");

+ }

+ 

+ sub test_flags {

+     return {fatal => 1, milestone => 1};

+ }

+ 

+ 1;

+ 

+ # vim: set sw=4 et:

+ 

+ 

+ 

@@ -0,0 +1,35 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Test the About dialogue.

+ 

+ sub run {

+     my $self = shift;

+     

+     # Open the menu by clicking on the Burger icon

+     assert_and_click("gnome_burger_menu", button => "left", timeout => 30);

+     wait_still_screen 2;

+     

+     # In the menu, click on the About item.

+     assert_and_click("nautilus_menu_about", button => "left", timeout => 30);

+     

+     # Check that the About section has been displayed.

+     assert_screen("nautilus_about_show");

+     

+     # Click on Credits button to see the second part of the dialogue.

+     assert_and_click("nautilus_about_credits", button => "left", timeout => 30);

+     

+     # Check that Credits are accessible and visible, too.

+     assert_screen("nautilus_credits_shown");

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

@@ -0,0 +1,52 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Copy a file.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Click onto a file to select it.

+     assert_and_click("nautilus_test_file");

+     wait_still_screen(2);

+     

+     # Press the keyboard shortcut to copy the file

+     send_key("ctrl-c");

+     

+     # Select a different location to place the file.

+     assert_and_click("nautilus_directory_downloads");

+     wait_still_screen(2);

+ 

+     # Assert that we have entered the correct directory.

+     assert_screen("nautilus_directory_reached_downloads");

+     

+     # Put the file in the new location

+     send_key("ctrl-v");

+     

+     # Check that the file has appeared.

+     assert_screen("nautilus_test_file");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Verify that the new file exists in original location.

+     assert_script_run("ls /home/test/Documents/markdown.md", timeout => '60', fail_message => 'The test file was incorrectly removed from the old location.', quiet => '0');

+     # And also in the new location.

+     assert_script_run("ls /home/test/Downloads/markdown.md", timeout => '60', fail_message => 'The test file has not been found in the new location.', quiet => '0');

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,48 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Create a new directory.

+ 

+ sub run {

+ my $self = shift;

+ 

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     wait_still_screen(2);

+     

+     #  Click on the Burger menu to open it

+     assert_and_click("gnome_burger_menu");

+     wait_still_screen(2);

+     

+     # Click on the Create directory icon to create a new directory.

+     assert_and_click("nautilus_menu_new_directory");

+     wait_still_screen(2);

+     

+     # Type in the new name

+     type_safely("new_directory");

+     send_key("ret");

+     

+     # Confirm that the directory has appeared in the tree

+     assert_screen("nautilus_new_directory_check");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Check that the directory can be listed.

+     assert_script_run("ls /home/test/Documents/new_directory", fail_message => "The expected directory does not exist.");

+     # Check that it indeed is a directory and that it is user writable and executable.

+     validate_script_output("ls -l /home/test/Documents/ | grep new_directory", sub { m/drwx/ });

+ 

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,77 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Delete a file.

+ 

+ sub run {

+     my $self = shift;

+ 

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Click onto a file to select it.

+     assert_and_click("nautilus_test_file");

+     

+     # Press the keyboard shortcut to delete the file and wait until file disappears

+     send_key("delete");

+     wait_still_screen(1);

+     

+     # Now, find the confirmation and click on Undo to return the operation.

+     assert_and_click("nautilus_delete_undo");

+     

+     # Check that the file is still in its location.

+     assert_and_click("nautilus_test_file");

+     wait_still_screen(2);

+     

+     # Delete the file again and this time, let time pass for the confirmation dialogue

+     # to disappear.

+     send_key("delete");

+     sleep(10);

+     

+     # Select another file and delete it.

+     assert_and_click("nautilus_test_file_another");

+     wait_still_screen(2);

+     send_key("delete");

+     sleep(10);

+     

+     # Navigate to the Wastebin and check that the file appeared there.

+     assert_and_click("nautilus_select_wastebin");

+     

+     # Confirm that Wastebin is active

+     assert_screen("nautilus_confirm_wastebin");

+     

+     # Check that the files are now located here.

+     assert_screen("nautilus_test_file");

+     assert_screen("nautilus_test_file_another");

+     

+     # Select the first file and restore it from the Bin.

+     assert_and_click("nautilus_test_file");

+     wait_still_screen(2);

+     assert_and_click("nautilus_restore_content");

+     

+     # Go to the Documents again and check that the file reappeared there.

+     assert_and_click("nautilus_directory_documents");

+     wait_still_screen(2);

+     assert_screen("nautilus_test_file");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Verify that the first file still exists in the location as it was restored from the bin.

+     assert_script_run("ls /home/test/Documents/markdown.md", timeout => '60', fail_message => 'The file has not been found in the location.', quiet => '0');

+     

+     # Verify that the next file has been deleted from the original location

+     assert_script_run("! ls /home/test/Documents/konkurz.md"); 

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,36 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Display Help.

+ 

+ sub run {

+     my $self = shift;

+     

+     # Open help.

+     send_key("f1");

+     wait_still_screen 2;

+     

+     # Check that Help has been shown.

+     assert_screen("nautilus_help_shown");

+     

+     # Open one of the topics.

+     assert_and_click("nautilus_help_browse_files");

+     

+     # Check that a correct topic has been opened.

+     assert_screen("nautilus_browse_shown");

+     

+     # Find a subtopic and open it links

+     assert_and_click("nautilus_help_search_file");

+     

+     # Check that it opened

+     assert_screen("nautilus_search_file_shown");

+ }

+ 

+ sub test_flags {

+         return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

@@ -0,0 +1,68 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Show and unshow hidden files.

+ 

+ sub run {

+ 	my $self = shift;

+ 	

+ 	#  Enter the Documents directory. 

+ 	assert_and_dclick("nautilus_documents_folder", timeout => '30', button => 'left', mousehide => '1');

+ 	

+ 	# Check that we are in the Documents directory.

+ 	assert_screen("nautilus_documents_active", timeout => '30', no_wait => '0');

+ 	

+ 	# Check if the hidden files are set to shown. If so, let's remember this status quo for further testing.

+ 	my $hidden_a = 0;

+ 	my $hidden_b = 0;

+ 	

+ 	# Set the a variable to 1, if the hidden files are shown.

+ 	if (check_screen("nautilus_hidden_file_shown")) {

+ 	    $hidden_a = 1;

+ 	}

+ 	

+ 	# Now toggle the status of the invisible files and check that it is changed now

+ 	# using the keyboard shortcut.

+ 	send_key("ctrl-h");

+ 	wait_still_screen(2);

+ 	

+ 	# Now let us check again, if the invisible file is seen.

+ 	if (check_screen("nautilus_hidden_file_shown")) {

+ 	   $hidden_b = 1;   	

+ 	}

+ 	

+ 	# Compare the results. They should differ from each other.

+ 	if ($hidden_a == $hidden_b) {

+ 	    die("The ctrl-h keyboard shortcut should have changed the status of invisible files, but the status has not been changed which indicates that the shortcut might not have worked correctly.");

+ 	}

+ 	

+ 	# Now use the menu to change the status of the invisible files.

+ 	assert_and_click("gnome_burger_menu");

+ 	wait_still_screen(2);

+ 	assert_and_click("nautilus_toggle_hidden_files", timeout => '30', button => 'left', mousehide => '1');

+ 	wait_still_screen(2);

+ 	

+ 	# Check the current status of the invisible files.

+ 	if (check_screen("nautilus_hidden_file_shown")) {

+ 	    $hidden_b = 1;

+ 	}

+ 	else {

+ 	    $hidden_b = 0;

+ 	}

+ 	

+ 	# Compare the results. They should be the same if everything up til now has worked correctly.

+ 	if ($hidden_a != $hidden_b) {

+ 	   die("The menu item 'Show hidden files' should have changed the status of the invisible files, but the status has not changed which indicates that the menu item might not have worked correctly.");

+ 	}

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

@@ -0,0 +1,39 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Display all screens of Keyboard shortcuts.

+ 

+ sub run {

+     my $self = shift;

+     

+     assert_and_click("gnome_burger_menu");

+     wait_still_screen(2);

+     

+     assert_and_click("nautilus_menu_shortcuts");

+     wait_still_screen(2);

+     

+     assert_screen("nautilus_shortcuts_first");

+     

+     send_key("right");

+     send_key("ret");

+     wait_still_screen(2);

+     

+     assert_screen("nautilus_shortcuts_second");

+     

+     send_key("right");

+     send_key("ret");

+     wait_still_screen(2);

+     

+     assert_screen("nautilus_shortcuts_third");

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

@@ -0,0 +1,52 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Move a file.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Click onto a file to select it.

+     assert_and_click("nautilus_test_file");

+     wait_still_screen(2);

+     

+     # Press the keyboard shortcut to cut the file

+     send_key("ctrl-x");

+     

+     # Select a different location to place the file.

+     assert_and_click("nautilus_directory_downloads");

+     wait_still_screen(2);

+ 

+     # Check that we have entered the Downloads directory

+     assert_screen("nautilus_directory_reached_downloads");

+     

+     # Put the file in the new location

+     send_key("ctrl-v");

+     

+     # Check that the file has appeared.

+     assert_screen("nautilus_test_file");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Verify that the new file does not exist in the original location.

+     assert_script_run("! ls /home/test/Documents/markdown.md", fail_message => 'The test file still exists in the original location, but it should have been removed.');

+     # And that it exists in the new location.

+     assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the expected location when it should have been copied there.', quiet => '0');

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,61 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Move and copy files using the Move/Copy To menu items.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Right click onto a file to select it and open the context menu

+     #  for it.

+     assert_and_click("nautilus_test_file", button => "right");

+     wait_still_screen(2);

+     

+     # Click on Copy To

+     assert_and_click("nautilus_context_copy_to");

+     wait_still_screen(2);

+     

+     # Select a different location to place the file.

+     assert_and_click("nautilus_directory_downloads");

+     wait_still_screen(2);

+     

+     # Click on Select to copy the file into the new location

+     assert_and_click("gnome_select_button");

+     

+     # Right click on that file again, this time we will move it elsewhere.

+     assert_and_click("nautilus_test_file", button => "right");

+     

+     # Click on Move to

+     assert_and_click("nautilus_context_move_to");

+     

+     # Select a new location for this file

+     assert_and_click("nautilus_directory_videos");

+     

+     # Click on Select to move the file into the new location.

+     assert_and_click("gnome_select_button");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Verify that the new file does not exist in the original location.

+     assert_script_run("! ls /home/test/Documents/markdown.md", fail_message => 'The test file has not been deleted from its original location.');

+     # And that it now exists in the new locations.

+     assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the expected location.', quiet => '0');

+     assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the excpected location.', quiet => '0');

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,39 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Open another instance of Nautilus.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Click on the Burger menu to open it

+     assert_and_click("gnome_burger_menu");

+     wait_still_screen(2);

+     

+     # Click on the new instance icon to create a new instance of Nautilus.

+     assert_and_click("nautilus_menu_new_instance");

+     wait_still_screen(2);

+     

+     # Hit the Meta key to switch to the activities mode for further check.

+     send_key("super");

+     wait_still_screen(2);

+     

+     # Confirm that two Nautilus windows exist in the view.

+     assert_screen("nautilus_instances_check");

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,40 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Open a new tab.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Click on the Burger menu to open it

+     assert_and_click("gnome_burger_menu");

+     wait_still_screen(2);

+     

+     # Click on the New tab to start a new tab of Nautilus.

+     assert_and_click("nautilus_menu_new_tab");

+     wait_still_screen(2);

+     

+     # The new tab will open in the same directory, so let us choose

+     # another directory to be able to compare in the needle.

+     assert_and_click("nautilus_directory_videos");

+     wait_still_screen(2);

+     

+     # Confirm that two tabs exists with Documents and Video locations.

+     assert_screen("nautilus_tabs_check");

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,66 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # View and change file permissions.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Rigth click onto a file to open context menu.

+     assert_and_click("nautilus_test_file", button => "right");

+     wait_still_screen(2);

+     

+     # Click on the Properties menu item

+     assert_and_click("nautilus_context_properties");

+     wait_still_screen(2);

+     

+     # Check that the Properties window has appeared and close it.

+     assert_screen("nautilus_properties_check");

+     send_key("esc");

+     

+     # Send a key combination to open the Properties again.

+     send_key("ctrl-i");

+     

+     # Check that the Properties window has appeared again.

+     assert_screen("nautilus_properties_check");

+     

+     # Click on the Permissions tab

+     assert_and_click("nautilus_select_permissions");

+     

+     # Check that the owner can read and write the file

+     assert_screen("nautilus_owner_permissions");

+     

+     # Check that others cannot do anything.

+     assert_screen("nautilus_others_permissions");

+     

+     # Set the permission for others to None

+     assert_and_click("nautilus_permissions_read_only");

+     

+     # Click on Read Only to select it.

+     assert_and_click("nautilus_permissions_set_none");

+     

+     # Close the Properties

+     send_key("esc");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Check that the permissions have been changed.

+     validate_script_output("ls -l /home/test/Documents/markdown.md", sub { m/-rw-r-----/ });

+ 

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,46 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Rename a file.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Click onto a file to select it.

+     assert_and_click("nautilus_test_file");

+     

+     # Press the keyboard shortcut to rename the file

+     send_key("f2");

+     

+     # Check that a rename dialogue has been displayed.

+     assert_screen("nautilus_rename_dialogue");

+     

+     # Type a new name and confirm it.

+     type_very_safely("renamed");

+     send_key("ret");

+     

+     # Check that the file has been renamed.

+     assert_screen("nautilus_rename_check");

+     

+     # Go into the root console and verify the operation in the background.

+     $self->root_console(tty=>3);

+     

+     # Verify that the new file exists in the location.

+     assert_script_run("ls /home/test/Documents/renamed.md", timeout => '60', fail_message => 'The renamed file has not been found in the location.', quiet => '0');

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

@@ -0,0 +1,62 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Toggle and untoggle the side panel.

+ 

+ sub run {

+     my $self = shift;

+     

+     # It seems that the following checks run so quickly that the tested 

+     # virtual machine is unable to properly reload from the previous test

+     # and it keeps failing.

+     # Let's give it some time to settle.

+     sleep(5);

+     

+     my $side_panel = 0;

+     if (check_screen("nautilus_side_panel")) {

+        	$side_panel = 1;

+     }

+     

+     # Switch off the side panel

+     send_key("f9");

+     wait_still_screen(2);

+     

+     # Recheck if side panel is visible

+     my $off_panel = 0;

+     if (check_screen("nautilus_side_panel")) {

+         $off_panel = 1;

+     }

+     

+     # Compare the results, they should be different.

+     if ($off_panel == $side_panel) {

+        die("The side panel visibility should have been toggled and it is not. That indicates that the keyboard shortcut to toggle it does not work properly.");

+     }

+     

+     # Use menu to toggle the side panel back.

+     assert_and_click("gnome_burger_menu");

+     wait_still_screen(2);

+     assert_and_click("nautilus_show_sidebar");

+     wait_still_screen(2);

+     

+     # Recheck if side panel is visible

+     if (check_screen("nautilus_side_panel")) {

+         $off_panel = 1;

+     }

+     

+     # Compare the results. If everything has been ok until now, the values should not be different.

+     if ($off_panel != $side_panel) {

+        die("The side panel visibility should have been toggled back, but it has not been. That indicates that the menu item to toggle it does not work properly.");

+     }

+     

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

@@ -0,0 +1,44 @@ 

+ use base "installedtest";

+ use strict;

+ use testapi;

+ use utils;

+ 

+ # Star a file and check it is displayed in the Starred folder.

+ 

+ sub run {

+     my $self = shift;

+     

+     #  Enter the Documents directory to get to the test data. 

+     assert_and_dclick("nautilus_directory_documents");

+     

+     #  Right click onto a file to select it to see the

+     #  context menu.

+     assert_and_click("nautilus_test_file", button => "right");

+     wait_still_screen(2);

+     

+     # Click to Star it.

+     assert_and_click("nautilus_context_star");

+     

+     # Check that a star gets solid on the right part of the selected file

+     assert_screen("nautilus_star_confirm");

+     

+     # Click on Starred to see all the starred files in a new view.

+     assert_and_click("nautilus_directory_starred");

+     wait_still_screen(2);

+     

+     # Check that the view switched to Starred

+     assert_screen("nautilus_starred_selected");

+     

+     # Check that the file has appeared.

+     assert_screen("nautilus_test_file");

+ }

+ 

+ sub test_flags {

+     # Rollback to the previous state to make space for other parts.

+     return {always_rollback => 1};

+ }

+ 

+ 1;

+ 

+ 

+ 

This test suite tests the basic functionality of Nautilus.

rebased onto 6b0baf948f2e58cf433de9c1d0d95a27ca0fc418

2 years ago

Metadata Update from @lruzicka:
- Request assigned

2 years ago

Metadata Update from @lruzicka:
- Request assignee reset

2 years ago

Metadata Update from @lruzicka:
- Request assigned

2 years ago

Build succeeded.

rebased onto 9983c200c31b473e91d02297ede67efb48d4c609

2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rebased onto c220b0ce8e317f549a551d3a92d7fb71af8a0ed9

2 years ago

rebased onto fcb34bb3841e3d24f5a2378899f433938f8b100f

2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

To be clear, I was waiting for this to be amended to pass tests before reviewing it:

py310 run-test: commands[1] | python ./check-needles.py
Image(s) without needle(s) found!
/workspace/src/pagure.io/fedora-qa/os-autoinst-distri-fedora/needles/gnome/apps/nautilus/nautilus_documents_folder-20220509.png

please fix that.

rebased onto 2878f873ce04c08ddae5ed9019fb4b2c2a121ecc

2 years ago

Build succeeded.

so, well, this kinda indicates a problem. This git repo is now 50M in size. Cloning it from scratch pulls down about 20M. So every single time any one of the tests that uses the repo runs, it does a 20M network transfer. That seems like a lot of wasted network traffic. This test adds 15M of that size -a 10M music file and a 5M image.

First of all, do these files need to be this big? Do we need 6.5M of images to test eog? Do we need 15M of stuff to test nautilus? If not, can we use much smaller files of the same type? Just compress the jpgs to hell, nobody cares about the image quality after all. Use a much shorter audio file (and again, compress it to hell).

Second of all, now this isn't very small, can we make it...not a git repo? Could it be a disk image instead, perhaps? That would still technically involve network transfer, but it'd at least only be NFS traffic between the openQA server and worker, it wouldn't be creating load on Pagure (which may be a more 'remote' network transaction than openQA server->worker host, I'm not sure). And if we ever switched to the more modern way of handling assets, it'd be cached on the worker host and wouldn't be constantly transferred over the network...

why do we use assert_script_run with fail_message above, but unless and die here? just seems weird.

I feel like this test and the 'copy a file' test could maybe share most of their code? they're almost identical except for the keyboard shortcut used and the expected result, right?

I think the location is meant to be Videos, not Downloads, for one of these lines?

It seems to me like, in this test, we never check that the copy operation does not remove the source file.

aside from above comments, this looks good, thanks.

I will come back to it once I finish the Software test.

rebased onto 17f538c43098e6abe6b381c61a8fbd805abed8d5

2 years ago

Build succeeded.

I feel like this test and the 'copy a file' test could maybe share most of their code? they're almost identical except for the keyboard shortcut used and the expected result, right?

Yes, they probably do, but since we are not going to use the code anywhere else in the future, I believe -> I decided to keep it that way rather than to litter the library with another one purpose subroutine. However, if you instisted I could do it.

1 new commit added

  • Fix after the review.
2 years ago

1 new commit added

  • Use a different method to download test data.
2 years ago

Build succeeded.

1 new commit added

  • Change testdata submethod.
2 years ago

Build succeeded.

1 new commit added

  • Delete useless files.
2 years ago

Build succeeded.

1 new commit added

  • Add --force.
2 years ago

Build succeeded.

1 new commit added

  • Make changes in copy_file
2 years ago

Build succeeded.

1 new commit added

  • Fix for new environment.
2 years ago

Build succeeded.

1 new commit added

  • Update move_file.pm
2 years ago

1 new commit added

  • Update file names.
2 years ago

1 new commit added

  • fix typo.
2 years ago

Build succeeded.

1 new commit added

  • Update rename test.
2 years ago

Build succeeded.

On the shared function - it's a fair point. We could put it in its own file rather than filling up utils.pm, but you could still argue that's not worth it for just two functions. Let's think about it a bit.

Meanwhile this needs to be rebased and adjusted for the changes to the git test data - field.jpg isn't in Documents any more, and so on.

1 new commit added

  • Change permission test.
2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

1 new commit added

  • Fix name of the test file.
2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

1 new commit added

  • Add new needles for changed tests.
2 years ago

1 new commit added

  • Delete unused needles.
2 years ago

Build succeeded.

rebased onto 276943de3f1ee67eb79d40676a030f94e3545d3e

2 years ago

Build succeeded.

I believe I have tweaked this according to the comments.

I think there may still be some issues with the git changes. It seems like you wanted to switch from using field.jpg as the test file to using markdown.md, so the test file is still in the Documents directory, but I see at least two issues there: nautilus_test_file-20220509 is still a needle for field.jpg (so I guess it should be updated or removed?), and aaa_setup.pm still sets the permissions on field.jpg, not markdown.md.

Should we assert that we actually reached the Downloads directory here? We would fail later if we didn't (in the console checks), but it might be clearer to do it here. Same for the move_file test.

1 new commit added

  • Delete useless needles and remove chmod.
2 years ago

Build succeeded.

1 new commit added

  • Add checks for entered directories.
2 years ago

rebased onto 5ac15c97eac425fc85b5d09c52797de4e2a6be41

2 years ago

Build succeeded.

rebased onto ecdd6ae5ff7dd117977956e1a55ad226ac2391fb

2 years ago

rebased onto f3d1cbbad40932c49015d00b44612b28a29ad1d5

2 years ago

Build succeeded.

rebased onto bbe30f17f0f176492322f1cef148a569b5d378c6

2 years ago

Build succeeded.

rebased onto 7c00a4bdf6c0b4ae6bdadc55d3ee19ea1faa4857

2 years ago

Build succeeded.

rebased onto 48ec73e

2 years ago

Build succeeded.

I tested this out on stg, added a few minor robustifications from observed failures, now let's merge it. Thanks.

Pull-Request has been merged by adamwill

2 years ago
Metadata
Changes Summary 137
+15
file added
needles/gnome/apps/nautilus/nautilus_about_credits.json
+0
file added
needles/gnome/apps/nautilus/nautilus_about_credits.png
+15
file added
needles/gnome/apps/nautilus/nautilus_about_show.json
+0
file added
needles/gnome/apps/nautilus/nautilus_about_show.png
+15
file added
needles/gnome/apps/nautilus/nautilus_available_directories.json
+0
file added
needles/gnome/apps/nautilus/nautilus_available_directories.png
+15
file added
needles/gnome/apps/nautilus/nautilus_browse_shown.json
+0
file added
needles/gnome/apps/nautilus/nautilus_browse_shown.png
+15
file added
needles/gnome/apps/nautilus/nautilus_confirm_wastebin.json
+0
file added
needles/gnome/apps/nautilus/nautilus_confirm_wastebin.png
+15
file added
needles/gnome/apps/nautilus/nautilus_context_copy_to.json
+0
file added
needles/gnome/apps/nautilus/nautilus_context_copy_to.png
+15
file added
needles/gnome/apps/nautilus/nautilus_context_move_to.json
+0
file added
needles/gnome/apps/nautilus/nautilus_context_move_to.png
+15
file added
needles/gnome/apps/nautilus/nautilus_context_properties.json
+0
file added
needles/gnome/apps/nautilus/nautilus_context_properties.png
+15
file added
needles/gnome/apps/nautilus/nautilus_context_star.json
+0
file added
needles/gnome/apps/nautilus/nautilus_context_star.png
+15
file added
needles/gnome/apps/nautilus/nautilus_credits_shown.json
+0
file added
needles/gnome/apps/nautilus/nautilus_credits_shown.png
+15
file added
needles/gnome/apps/nautilus/nautilus_delete_undo.json
+0
file added
needles/gnome/apps/nautilus/nautilus_delete_undo.png
+15
file added
needles/gnome/apps/nautilus/nautilus_directory_documents.json
+0
file added
needles/gnome/apps/nautilus/nautilus_directory_documents.png
+15
file added
needles/gnome/apps/nautilus/nautilus_directory_documents_trash.json
+0
file added
needles/gnome/apps/nautilus/nautilus_directory_documents_trash.png
+15
file added
needles/gnome/apps/nautilus/nautilus_directory_downloads.json
+0
file added
needles/gnome/apps/nautilus/nautilus_directory_downloads.png
+15
file added
needles/gnome/apps/nautilus/nautilus_directory_reached_downloads.json
+0
file added
needles/gnome/apps/nautilus/nautilus_directory_reached_downloads.png
+15
file added
needles/gnome/apps/nautilus/nautilus_directory_starred.json
+0
file added
needles/gnome/apps/nautilus/nautilus_directory_starred.png
+15
file added
needles/gnome/apps/nautilus/nautilus_directory_videos.json
+0
file added
needles/gnome/apps/nautilus/nautilus_directory_videos.png
+15
file added
needles/gnome/apps/nautilus/nautilus_documents_active.json
+0
file added
needles/gnome/apps/nautilus/nautilus_documents_active.png
+15
file added
needles/gnome/apps/nautilus/nautilus_documents_folder-20220704.json
+0
file added
needles/gnome/apps/nautilus/nautilus_documents_folder-20220704.png
+15
file added
needles/gnome/apps/nautilus/nautilus_documents_folder.json
+0
file added
needles/gnome/apps/nautilus/nautilus_documents_folder.png
+15
file added
needles/gnome/apps/nautilus/nautilus_help_browse_files.json
+0
file added
needles/gnome/apps/nautilus/nautilus_help_browse_files.png
+15
file added
needles/gnome/apps/nautilus/nautilus_help_search_file.json
+0
file added
needles/gnome/apps/nautilus/nautilus_help_search_file.png
+15
file added
needles/gnome/apps/nautilus/nautilus_help_shown.json
+0
file added
needles/gnome/apps/nautilus/nautilus_help_shown.png
+15
file added
needles/gnome/apps/nautilus/nautilus_hidden_file_shown.json
+0
file added
needles/gnome/apps/nautilus/nautilus_hidden_file_shown.png
+22
file added
needles/gnome/apps/nautilus/nautilus_instances_check.json
+0
file added
needles/gnome/apps/nautilus/nautilus_instances_check.png
+15
file added
needles/gnome/apps/nautilus/nautilus_menu_about.json
+0
file added
needles/gnome/apps/nautilus/nautilus_menu_about.png
+15
file added
needles/gnome/apps/nautilus/nautilus_menu_new_directory.json
+0
file added
needles/gnome/apps/nautilus/nautilus_menu_new_directory.png
+15
file added
needles/gnome/apps/nautilus/nautilus_menu_new_instance.json
+0
file added
needles/gnome/apps/nautilus/nautilus_menu_new_instance.png
+15
file added
needles/gnome/apps/nautilus/nautilus_menu_new_tab.json
+0
file added
needles/gnome/apps/nautilus/nautilus_menu_new_tab.png
+15
file added
needles/gnome/apps/nautilus/nautilus_menu_shortcuts.json
+0
file added
needles/gnome/apps/nautilus/nautilus_menu_shortcuts.png
+15
file added
needles/gnome/apps/nautilus/nautilus_new_directory_check-unselected-20220712.json
+0
file added
needles/gnome/apps/nautilus/nautilus_new_directory_check-unselected-20220712.png
+15
file added
needles/gnome/apps/nautilus/nautilus_new_directory_check.json
+0
file added
needles/gnome/apps/nautilus/nautilus_new_directory_check.png
+15
file added
needles/gnome/apps/nautilus/nautilus_others_permissions.json
+0
file added
needles/gnome/apps/nautilus/nautilus_others_permissions.png
+15
file added
needles/gnome/apps/nautilus/nautilus_owner_permissions.json
+0
file added
needles/gnome/apps/nautilus/nautilus_owner_permissions.png
+15
file added
needles/gnome/apps/nautilus/nautilus_permissions_read_only.json
+0
file added
needles/gnome/apps/nautilus/nautilus_permissions_read_only.png
+15
file added
needles/gnome/apps/nautilus/nautilus_permissions_set_none.json
+0
file added
needles/gnome/apps/nautilus/nautilus_permissions_set_none.png
+15
file added
needles/gnome/apps/nautilus/nautilus_properties_check.json
+0
file added
needles/gnome/apps/nautilus/nautilus_properties_check.png
+15
file added
needles/gnome/apps/nautilus/nautilus_rename_check.json
+0
file added
needles/gnome/apps/nautilus/nautilus_rename_check.png
+15
file added
needles/gnome/apps/nautilus/nautilus_rename_dialogue.json
+0
file added
needles/gnome/apps/nautilus/nautilus_rename_dialogue.png
+15
file added
needles/gnome/apps/nautilus/nautilus_restore_content.json
+0
file added
needles/gnome/apps/nautilus/nautilus_restore_content.png
+15
file added
needles/gnome/apps/nautilus/nautilus_search_file_shown.json
+0
file added
needles/gnome/apps/nautilus/nautilus_search_file_shown.png
+15
file added
needles/gnome/apps/nautilus/nautilus_select_permissions.json
+0
file added
needles/gnome/apps/nautilus/nautilus_select_permissions.png
+15
file added
needles/gnome/apps/nautilus/nautilus_select_wastebin.json
+0
file added
needles/gnome/apps/nautilus/nautilus_select_wastebin.png
+22
file added
needles/gnome/apps/nautilus/nautilus_shortcuts_first.json
+0
file added
needles/gnome/apps/nautilus/nautilus_shortcuts_first.png
+22
file added
needles/gnome/apps/nautilus/nautilus_shortcuts_second.json
+0
file added
needles/gnome/apps/nautilus/nautilus_shortcuts_second.png
+22
file added
needles/gnome/apps/nautilus/nautilus_shortcuts_third.json
+0
file added
needles/gnome/apps/nautilus/nautilus_shortcuts_third.png
+15
file added
needles/gnome/apps/nautilus/nautilus_show_sidebar.json
+0
file added
needles/gnome/apps/nautilus/nautilus_show_sidebar.png
+15
file added
needles/gnome/apps/nautilus/nautilus_side_panel-20220502.json
+0
file added
needles/gnome/apps/nautilus/nautilus_side_panel-20220502.png
+15
file added
needles/gnome/apps/nautilus/nautilus_side_panel.json
+0
file added
needles/gnome/apps/nautilus/nautilus_side_panel.png
+15
file added
needles/gnome/apps/nautilus/nautilus_star_confirm.json
+0
file added
needles/gnome/apps/nautilus/nautilus_star_confirm.png
+15
file added
needles/gnome/apps/nautilus/nautilus_starred_selected.json
+0
file added
needles/gnome/apps/nautilus/nautilus_starred_selected.png
+22
file added
needles/gnome/apps/nautilus/nautilus_tabs_check.json
+0
file added
needles/gnome/apps/nautilus/nautilus_tabs_check.png
+15
file added
needles/gnome/apps/nautilus/nautilus_test_file.json
+0
file added
needles/gnome/apps/nautilus/nautilus_test_file.png
+15
file added
needles/gnome/apps/nautilus/nautilus_test_file_another-20220704.json
+0
file added
needles/gnome/apps/nautilus/nautilus_test_file_another-20220704.png
+15
file added
needles/gnome/apps/nautilus/nautilus_test_file_another.json
+0
file added
needles/gnome/apps/nautilus/nautilus_test_file_another.png
+15
file added
needles/gnome/apps/nautilus/nautilus_test_file_another_selected.json
+0
file added
needles/gnome/apps/nautilus/nautilus_test_file_another_selected.png
+15
file added
needles/gnome/apps/nautilus/nautilus_test_file_selected.json
+0
file added
needles/gnome/apps/nautilus/nautilus_test_file_selected.png
+15
file added
needles/gnome/apps/nautilus/nautilus_toggle_hidden_files.json
+0
file added
needles/gnome/apps/nautilus/nautilus_toggle_hidden_files.png
+15
file added
needles/gnome/apps/nautilus/nautilus_toggle_view.json
+0
file added
needles/gnome/apps/nautilus/nautilus_toggle_view.png
+15
file added
needles/gnome/gnome_select_button.json
+0
file added
needles/gnome/gnome_select_button.png
+17 -0
file changed
templates.fif.json
+52
file added
tests/applications/nautilus/aaa_setup.pm
+35
file added
tests/applications/nautilus/about.pm
+52
file added
tests/applications/nautilus/copy_file.pm
+48
file added
tests/applications/nautilus/create_directory.pm
+77
file added
tests/applications/nautilus/delete_file.pm
+36
file added
tests/applications/nautilus/help.pm
+68
file added
tests/applications/nautilus/hidden_files.pm
+39
file added
tests/applications/nautilus/keyboard_shortcuts.pm
+52
file added
tests/applications/nautilus/move_file.pm
+61
file added
tests/applications/nautilus/move_file_into.pm
+39
file added
tests/applications/nautilus/new_instance.pm
+40
file added
tests/applications/nautilus/open_new_tab.pm
+66
file added
tests/applications/nautilus/permissions.pm
+46
file added
tests/applications/nautilus/rename_file.pm
+62
file added
tests/applications/nautilus/side_panel.pm
+44
file added
tests/applications/nautilus/star_file.pm