diff --git a/check-needles.py b/check-needles.py index 57ec9833..510cd04d 100755 --- a/check-needles.py +++ b/check-needles.py @@ -123,6 +123,11 @@ for hashname in ("jlJmL", "7XGzO", "ps61y", "OvXj~", "GqYOp", "VEFrP"): testliterals.append(f"contacts_contact_added_{hashname}") for info in ("home", "personal", "work"): testliterals.append(f"contacts_label_{info}") +# Needles for Maps +for location in ("vilnius", "denali", "wellington", "scarborough", "pune"): + testliterals.append(f"maps_select_{location}") + testliterals.append(f"maps_found_{location}") + testliterals.append(f"maps_info_{location}") # variable-y in custom_change_device but we only have one value testliterals.append("anaconda_part_device_sda") # for Anaconda help related needles. diff --git a/needles/gnome/apps/maps/maps_about_shown.json b/needles/gnome/apps/maps/maps_about_shown.json new file mode 100644 index 00000000..069c5bdf --- /dev/null +++ b/needles/gnome/apps/maps/maps_about_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 447, + "ypos": 226, + "width": 123, + "height": 113, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_about_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_about_shown.png b/needles/gnome/apps/maps/maps_about_shown.png new file mode 100644 index 00000000..325c65c5 Binary files /dev/null and b/needles/gnome/apps/maps/maps_about_shown.png differ diff --git a/needles/gnome/apps/maps/maps_button_credits.json b/needles/gnome/apps/maps/maps_button_credits.json new file mode 100644 index 00000000..645aed3e --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_credits.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 355, + "ypos": 582, + "width": 54, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_credits" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_credits.png b/needles/gnome/apps/maps/maps_button_credits.png new file mode 100644 index 00000000..3061355f Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_credits.png differ diff --git a/needles/gnome/apps/maps/maps_button_delete_bar.json b/needles/gnome/apps/maps/maps_button_delete_bar.json new file mode 100644 index 00000000..02c62646 --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_delete_bar.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 742, + "ypos": 46, + "width": 19, + "height": 17, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_delete_bar" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_delete_bar.png b/needles/gnome/apps/maps/maps_button_delete_bar.png new file mode 100644 index 00000000..dc4144ee Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_delete_bar.png differ diff --git a/needles/gnome/apps/maps/maps_button_export.json b/needles/gnome/apps/maps/maps_button_export.json new file mode 100644 index 00000000..dbb5388f --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_export.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 677, + "ypos": 334, + "width": 54, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_export" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_export.png b/needles/gnome/apps/maps/maps_button_export.png new file mode 100644 index 00000000..703238f5 Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_export.png differ diff --git a/needles/gnome/apps/maps/maps_button_legal.json b/needles/gnome/apps/maps/maps_button_legal.json new file mode 100644 index 00000000..fa7df9da --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_legal.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 352, + "ypos": 636, + "width": 46, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_legal" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_legal.png b/needles/gnome/apps/maps/maps_button_legal.png new file mode 100644 index 00000000..99fbb294 Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_legal.png differ diff --git a/needles/gnome/apps/maps/maps_button_overlays.json b/needles/gnome/apps/maps/maps_button_overlays.json new file mode 100644 index 00000000..dee27149 --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_overlays.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 53, + "ypos": 47, + "width": 18, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_overlays" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_overlays.png b/needles/gnome/apps/maps/maps_button_overlays.png new file mode 100644 index 00000000..dc950011 Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_overlays.png differ diff --git a/needles/gnome/apps/maps/maps_button_route.json b/needles/gnome/apps/maps/maps_button_route.json new file mode 100644 index 00000000..464baeda --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_route.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 910, + "ypos": 46, + "width": 21, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_route" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_route.png b/needles/gnome/apps/maps/maps_button_route.png new file mode 100644 index 00000000..d4e07cdd Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_route.png differ diff --git a/needles/gnome/apps/maps/maps_button_zoom_in.json b/needles/gnome/apps/maps/maps_button_zoom_in.json new file mode 100644 index 00000000..8e717dec --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_zoom_in.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "maps_button_zoom_in" + ], + "area": [ + { + "xpos": 132, + "ypos": 44, + "width": 24, + "height": 24, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_zoom_in.png b/needles/gnome/apps/maps/maps_button_zoom_in.png new file mode 100644 index 00000000..8501f47c Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_zoom_in.png differ diff --git a/needles/gnome/apps/maps/maps_button_zoom_out.json b/needles/gnome/apps/maps/maps_button_zoom_out.json new file mode 100644 index 00000000..edf1568d --- /dev/null +++ b/needles/gnome/apps/maps/maps_button_zoom_out.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 95, + "ypos": 44, + "width": 19, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_button_zoom_out" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_button_zoom_out.png b/needles/gnome/apps/maps/maps_button_zoom_out.png new file mode 100644 index 00000000..a25740d8 Binary files /dev/null and b/needles/gnome/apps/maps/maps_button_zoom_out.png differ diff --git a/needles/gnome/apps/maps/maps_credits_shown.json b/needles/gnome/apps/maps/maps_credits_shown.json new file mode 100644 index 00000000..27690de1 --- /dev/null +++ b/needles/gnome/apps/maps/maps_credits_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 341, + "ypos": 182, + "width": 162, + "height": 75, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_credits_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_credits_shown.png b/needles/gnome/apps/maps/maps_credits_shown.png new file mode 100644 index 00000000..fb6243d0 Binary files /dev/null and b/needles/gnome/apps/maps/maps_credits_shown.png differ diff --git a/needles/gnome/apps/maps/maps_exported_map-20221117.json b/needles/gnome/apps/maps/maps_exported_map-20221117.json new file mode 100644 index 00000000..31c5eee9 --- /dev/null +++ b/needles/gnome/apps/maps/maps_exported_map-20221117.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 355, + "type": "match", + "height": 80, + "width": 118, + "ypos": 396 + } + ], + "properties": [], + "tags": [ + "maps_exported_map" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_exported_map-20221117.png b/needles/gnome/apps/maps/maps_exported_map-20221117.png new file mode 100644 index 00000000..3c2fceac Binary files /dev/null and b/needles/gnome/apps/maps/maps_exported_map-20221117.png differ diff --git a/needles/gnome/apps/maps/maps_found_brno.json b/needles/gnome/apps/maps/maps_found_brno.json new file mode 100644 index 00000000..f785c8e2 --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_brno.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "xpos": 443, + "ypos": 374, + "width": 137, + "height": 117, + "type": "match", + "match": 90 + } + ], + "properties": [], + "tags": [ + "maps_found_brno" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_brno.png b/needles/gnome/apps/maps/maps_found_brno.png new file mode 100644 index 00000000..a1a8d528 Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_brno.png differ diff --git a/needles/gnome/apps/maps/maps_found_brno_inlocation.json b/needles/gnome/apps/maps/maps_found_brno_inlocation.json new file mode 100644 index 00000000..3db290d8 --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_brno_inlocation.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "xpos": 443, + "ypos": 374, + "height": 117, + "width": 137 + } + ], + "properties": [], + "tags": [ + "maps_found_brno" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_brno_inlocation.png b/needles/gnome/apps/maps/maps_found_brno_inlocation.png new file mode 100644 index 00000000..5bd87dd7 Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_brno_inlocation.png differ diff --git a/needles/gnome/apps/maps/maps_found_denali-20220929.json b/needles/gnome/apps/maps/maps_found_denali-20220929.json new file mode 100644 index 00000000..0132aecf --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_denali-20220929.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 107, + "ypos": 389, + "width": 146, + "xpos": 431 + } + ], + "properties": [], + "tags": [ + "maps_found_denali" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_denali-20220929.png b/needles/gnome/apps/maps/maps_found_denali-20220929.png new file mode 100644 index 00000000..a603f4bd Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_denali-20220929.png differ diff --git a/needles/gnome/apps/maps/maps_found_denali.json b/needles/gnome/apps/maps/maps_found_denali.json new file mode 100644 index 00000000..064612c8 --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_denali.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 431, + "ypos": 389, + "width": 146, + "height": 107, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_found_denali" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_denali.png b/needles/gnome/apps/maps/maps_found_denali.png new file mode 100644 index 00000000..55a88e62 Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_denali.png differ diff --git a/needles/gnome/apps/maps/maps_found_pune.json b/needles/gnome/apps/maps/maps_found_pune.json new file mode 100644 index 00000000..2a38192c --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_pune.json @@ -0,0 +1,16 @@ +{ + "properties": [], + "tags": [ + "maps_found_pune" + ], + "area": [ + { + "xpos": 374, + "ypos": 327, + "width": 212, + "height": 128, + "type": "match", + "match": "90" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_pune.png b/needles/gnome/apps/maps/maps_found_pune.png new file mode 100644 index 00000000..a3085043 Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_pune.png differ diff --git a/needles/gnome/apps/maps/maps_found_scarborough-20220930.json b/needles/gnome/apps/maps/maps_found_scarborough-20220930.json new file mode 100644 index 00000000..e7087a7a --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_scarborough-20220930.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "xpos": 377, + "width": 160, + "ypos": 397, + "height": 77, + "type": "match", + "match": 90 + } + ], + "properties": [], + "tags": [ + "maps_found_scarborough" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_scarborough-20220930.png b/needles/gnome/apps/maps/maps_found_scarborough-20220930.png new file mode 100644 index 00000000..20254263 Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_scarborough-20220930.png differ diff --git a/needles/gnome/apps/maps/maps_found_scarborough.json b/needles/gnome/apps/maps/maps_found_scarborough.json new file mode 100644 index 00000000..6ef3e7a7 --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_scarborough.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 377, + "ypos": 397, + "width": 160, + "height": 77, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_found_scarborough" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_scarborough.png b/needles/gnome/apps/maps/maps_found_scarborough.png new file mode 100644 index 00000000..1c309dcd Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_scarborough.png differ diff --git a/needles/gnome/apps/maps/maps_found_vilnius.json b/needles/gnome/apps/maps/maps_found_vilnius.json new file mode 100644 index 00000000..d984c908 --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_vilnius.json @@ -0,0 +1,16 @@ +{ + "properties": [], + "tags": [ + "maps_found_vilnius" + ], + "area": [ + { + "xpos": 540, + "ypos": 387, + "width": 192, + "height": 140, + "type": "match", + "match": "90" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_vilnius.png b/needles/gnome/apps/maps/maps_found_vilnius.png new file mode 100644 index 00000000..b5f2bfb7 Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_vilnius.png differ diff --git a/needles/gnome/apps/maps/maps_found_wellington.json b/needles/gnome/apps/maps/maps_found_wellington.json new file mode 100644 index 00000000..3cc7ef40 --- /dev/null +++ b/needles/gnome/apps/maps/maps_found_wellington.json @@ -0,0 +1,16 @@ +{ + "properties": [], + "tags": [ + "maps_found_wellington" + ], + "area": [ + { + "xpos": 379, + "ypos": 379, + "width": 198, + "height": 119, + "type": "match", + "match": "90" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_found_wellington.png b/needles/gnome/apps/maps/maps_found_wellington.png new file mode 100644 index 00000000..d65f729e Binary files /dev/null and b/needles/gnome/apps/maps/maps_found_wellington.png differ diff --git a/needles/gnome/apps/maps/maps_info_denali.json b/needles/gnome/apps/maps/maps_info_denali.json new file mode 100644 index 00000000..ffda13b3 --- /dev/null +++ b/needles/gnome/apps/maps/maps_info_denali.json @@ -0,0 +1,22 @@ +{ + "properties": [], + "tags": [ + "maps_info_denali" + ], + "area": [ + { + "xpos": 478, + "ypos": 513, + "width": 127, + "height": 47, + "type": "match" + }, + { + "xpos": 371, + "ypos": 697, + "width": 76, + "height": 29, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_info_denali.png b/needles/gnome/apps/maps/maps_info_denali.png new file mode 100644 index 00000000..f4667abe Binary files /dev/null and b/needles/gnome/apps/maps/maps_info_denali.png differ diff --git a/needles/gnome/apps/maps/maps_info_pune.json b/needles/gnome/apps/maps/maps_info_pune.json new file mode 100644 index 00000000..1426e540 --- /dev/null +++ b/needles/gnome/apps/maps/maps_info_pune.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "maps_info_pune" + ], + "area": [ + { + "xpos": 394, + "ypos": 283, + "width": 96, + "height": 29, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_info_pune.png b/needles/gnome/apps/maps/maps_info_pune.png new file mode 100644 index 00000000..631a9091 Binary files /dev/null and b/needles/gnome/apps/maps/maps_info_pune.png differ diff --git a/needles/gnome/apps/maps/maps_info_scarborough.json b/needles/gnome/apps/maps/maps_info_scarborough.json new file mode 100644 index 00000000..c70867e7 --- /dev/null +++ b/needles/gnome/apps/maps/maps_info_scarborough.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 394, + "ypos": 283, + "width": 129, + "height": 56, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_info_scarborough" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_info_scarborough.png b/needles/gnome/apps/maps/maps_info_scarborough.png new file mode 100644 index 00000000..8019af5e Binary files /dev/null and b/needles/gnome/apps/maps/maps_info_scarborough.png differ diff --git a/needles/gnome/apps/maps/maps_info_vilnius.json b/needles/gnome/apps/maps/maps_info_vilnius.json new file mode 100644 index 00000000..27b4f989 --- /dev/null +++ b/needles/gnome/apps/maps/maps_info_vilnius.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "xpos": 468, + "ypos": 66, + "width": 87, + "height": 100, + "type": "match" + }, + { + "xpos": 376, + "ypos": 210, + "width": 74, + "height": 29, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_info_vilnius" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_info_vilnius.png b/needles/gnome/apps/maps/maps_info_vilnius.png new file mode 100644 index 00000000..af842bc4 Binary files /dev/null and b/needles/gnome/apps/maps/maps_info_vilnius.png differ diff --git a/needles/gnome/apps/maps/maps_info_wellington.json b/needles/gnome/apps/maps/maps_info_wellington.json new file mode 100644 index 00000000..71907551 --- /dev/null +++ b/needles/gnome/apps/maps/maps_info_wellington.json @@ -0,0 +1,22 @@ +{ + "properties": [], + "tags": [ + "maps_info_wellington" + ], + "area": [ + { + "xpos": 426, + "ypos": 193, + "width": 107, + "height": 66, + "type": "match" + }, + { + "xpos": 375, + "ypos": 287, + "width": 117, + "height": 60, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_info_wellington.png b/needles/gnome/apps/maps/maps_info_wellington.png new file mode 100644 index 00000000..9cf72c29 Binary files /dev/null and b/needles/gnome/apps/maps/maps_info_wellington.png differ diff --git a/needles/gnome/apps/maps/maps_issues_opened.json b/needles/gnome/apps/maps/maps_issues_opened.json new file mode 100644 index 00000000..01072d2e --- /dev/null +++ b/needles/gnome/apps/maps/maps_issues_opened.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 216, + "ypos": 82, + "width": 201, + "height": 27, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_issues_opened" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_issues_opened.png b/needles/gnome/apps/maps/maps_issues_opened.png new file mode 100644 index 00000000..ed0a04cd Binary files /dev/null and b/needles/gnome/apps/maps/maps_issues_opened.png differ diff --git a/needles/gnome/apps/maps/maps_legal_shown.json b/needles/gnome/apps/maps/maps_legal_shown.json new file mode 100644 index 00000000..c2ca8b28 --- /dev/null +++ b/needles/gnome/apps/maps/maps_legal_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 340, + "ypos": 211, + "width": 304, + "height": 38, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_legal_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_legal_shown.png b/needles/gnome/apps/maps/maps_legal_shown.png new file mode 100644 index 00000000..2248b469 Binary files /dev/null and b/needles/gnome/apps/maps/maps_legal_shown.png differ diff --git a/needles/gnome/apps/maps/maps_link_issue.json b/needles/gnome/apps/maps/maps_link_issue.json new file mode 100644 index 00000000..7b03266f --- /dev/null +++ b/needles/gnome/apps/maps/maps_link_issue.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 354, + "ypos": 508, + "width": 108, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_link_issue" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_link_issue.png b/needles/gnome/apps/maps/maps_link_issue.png new file mode 100644 index 00000000..2a0f0a3c Binary files /dev/null and b/needles/gnome/apps/maps/maps_link_issue.png differ diff --git a/needles/gnome/apps/maps/maps_link_website.json b/needles/gnome/apps/maps/maps_link_website.json new file mode 100644 index 00000000..13850659 --- /dev/null +++ b/needles/gnome/apps/maps/maps_link_website.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 357, + "ypos": 438, + "width": 59, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_link_website" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_link_website.png b/needles/gnome/apps/maps/maps_link_website.png new file mode 100644 index 00000000..be774f9a Binary files /dev/null and b/needles/gnome/apps/maps/maps_link_website.png differ diff --git a/needles/gnome/apps/maps/maps_map_zoomed.json b/needles/gnome/apps/maps/maps_map_zoomed.json new file mode 100644 index 00000000..d0cb3592 --- /dev/null +++ b/needles/gnome/apps/maps/maps_map_zoomed.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "xpos": 415, + "ypos": 362, + "width": 197, + "height": 162, + "type": "match", + "match": 90 + } + ], + "properties": [], + "tags": [ + "maps_map_zoomed" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_map_zoomed.png b/needles/gnome/apps/maps/maps_map_zoomed.png new file mode 100644 index 00000000..18859643 Binary files /dev/null and b/needles/gnome/apps/maps/maps_map_zoomed.png differ diff --git a/needles/gnome/apps/maps/maps_menu_about.json b/needles/gnome/apps/maps/maps_menu_about.json new file mode 100644 index 00000000..fc963649 --- /dev/null +++ b/needles/gnome/apps/maps/maps_menu_about.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 799, + "ypos": 207, + "width": 84, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_menu_about" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_menu_about.png b/needles/gnome/apps/maps/maps_menu_about.png new file mode 100644 index 00000000..9b98288e Binary files /dev/null and b/needles/gnome/apps/maps/maps_menu_about.png differ diff --git a/needles/gnome/apps/maps/maps_menu_export.json b/needles/gnome/apps/maps/maps_menu_export.json new file mode 100644 index 00000000..b13d77b5 --- /dev/null +++ b/needles/gnome/apps/maps/maps_menu_export.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 798, + "ypos": 129, + "width": 116, + "height": 25, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_menu_export" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_menu_export.png b/needles/gnome/apps/maps/maps_menu_export.png new file mode 100644 index 00000000..035379f0 Binary files /dev/null and b/needles/gnome/apps/maps/maps_menu_export.png differ diff --git a/needles/gnome/apps/maps/maps_menu_shortcuts.json b/needles/gnome/apps/maps/maps_menu_shortcuts.json new file mode 100644 index 00000000..1580ba65 --- /dev/null +++ b/needles/gnome/apps/maps/maps_menu_shortcuts.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 799, + "ypos": 173, + "width": 132, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_menu_shortcuts" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_menu_shortcuts.png b/needles/gnome/apps/maps/maps_menu_shortcuts.png new file mode 100644 index 00000000..0865f30b Binary files /dev/null and b/needles/gnome/apps/maps/maps_menu_shortcuts.png differ diff --git a/needles/gnome/apps/maps/maps_route_bike_shown-20221117.json b/needles/gnome/apps/maps/maps_route_bike_shown-20221117.json new file mode 100644 index 00000000..062ad3e5 --- /dev/null +++ b/needles/gnome/apps/maps/maps_route_bike_shown-20221117.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "width": 102, + "height": 318, + "ypos": 194, + "xpos": 300 + } + ], + "properties": [], + "tags": [ + "maps_route_bike_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_route_bike_shown-20221117.png b/needles/gnome/apps/maps/maps_route_bike_shown-20221117.png new file mode 100644 index 00000000..c57c177d Binary files /dev/null and b/needles/gnome/apps/maps/maps_route_bike_shown-20221117.png differ diff --git a/needles/gnome/apps/maps/maps_route_car_shown-20221117.json b/needles/gnome/apps/maps/maps_route_car_shown-20221117.json new file mode 100644 index 00000000..688c344c --- /dev/null +++ b/needles/gnome/apps/maps/maps_route_car_shown-20221117.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 195, + "type": "match", + "height": 329, + "width": 80, + "xpos": 322 + } + ], + "properties": [], + "tags": [ + "maps_route_car_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_route_car_shown-20221117.png b/needles/gnome/apps/maps/maps_route_car_shown-20221117.png new file mode 100644 index 00000000..28765022 Binary files /dev/null and b/needles/gnome/apps/maps/maps_route_car_shown-20221117.png differ diff --git a/needles/gnome/apps/maps/maps_route_type_bike.json b/needles/gnome/apps/maps/maps_route_type_bike.json new file mode 100644 index 00000000..aec14d33 --- /dev/null +++ b/needles/gnome/apps/maps/maps_route_type_bike.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 830, + "ypos": 98, + "width": 23, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_route_type_bike" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_route_type_bike.png b/needles/gnome/apps/maps/maps_route_type_bike.png new file mode 100644 index 00000000..32c03ffe Binary files /dev/null and b/needles/gnome/apps/maps/maps_route_type_bike.png differ diff --git a/needles/gnome/apps/maps/maps_route_type_car.json b/needles/gnome/apps/maps/maps_route_type_car.json new file mode 100644 index 00000000..938f2daa --- /dev/null +++ b/needles/gnome/apps/maps/maps_route_type_car.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 873, + "ypos": 94, + "width": 23, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_route_type_car" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_route_type_car.png b/needles/gnome/apps/maps/maps_route_type_car.png new file mode 100644 index 00000000..84031a07 Binary files /dev/null and b/needles/gnome/apps/maps/maps_route_type_car.png differ diff --git a/needles/gnome/apps/maps/maps_route_type_walk.json b/needles/gnome/apps/maps/maps_route_type_walk.json new file mode 100644 index 00000000..77a20b0a --- /dev/null +++ b/needles/gnome/apps/maps/maps_route_type_walk.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 789, + "ypos": 94, + "width": 23, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_route_type_walk" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_route_type_walk.png b/needles/gnome/apps/maps/maps_route_type_walk.png new file mode 100644 index 00000000..b261f1e9 Binary files /dev/null and b/needles/gnome/apps/maps/maps_route_type_walk.png differ diff --git a/needles/gnome/apps/maps/maps_route_walk_shown-20221117.json b/needles/gnome/apps/maps/maps_route_walk_shown-20221117.json new file mode 100644 index 00000000..5e61d602 --- /dev/null +++ b/needles/gnome/apps/maps/maps_route_walk_shown-20221117.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 195, + "width": 98, + "height": 315, + "type": "match", + "xpos": 305 + } + ], + "properties": [], + "tags": [ + "maps_route_walk_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_route_walk_shown-20221117.png b/needles/gnome/apps/maps/maps_route_walk_shown-20221117.png new file mode 100644 index 00000000..065d0046 Binary files /dev/null and b/needles/gnome/apps/maps/maps_route_walk_shown-20221117.png differ diff --git a/needles/gnome/apps/maps/maps_scale_off-20221117.json b/needles/gnome/apps/maps/maps_scale_off-20221117.json new file mode 100644 index 00000000..67f79bf5 --- /dev/null +++ b/needles/gnome/apps/maps/maps_scale_off-20221117.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 578, + "width": 157, + "height": 61, + "type": "match", + "xpos": 4 + } + ], + "properties": [], + "tags": [ + "maps_scale_off" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_scale_off-20221117.png b/needles/gnome/apps/maps/maps_scale_off-20221117.png new file mode 100644 index 00000000..421de94a Binary files /dev/null and b/needles/gnome/apps/maps/maps_scale_off-20221117.png differ diff --git a/needles/gnome/apps/maps/maps_scale_on-20221117.json b/needles/gnome/apps/maps/maps_scale_on-20221117.json new file mode 100644 index 00000000..fdac5f4f --- /dev/null +++ b/needles/gnome/apps/maps/maps_scale_on-20221117.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 601, + "type": "match", + "width": 151, + "height": 38, + "xpos": 5 + } + ], + "properties": [], + "tags": [ + "maps_scale_on" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_scale_on-20221117.png b/needles/gnome/apps/maps/maps_scale_on-20221117.png new file mode 100644 index 00000000..1e1034c3 Binary files /dev/null and b/needles/gnome/apps/maps/maps_scale_on-20221117.png differ diff --git a/needles/gnome/apps/maps/maps_select_brno.json b/needles/gnome/apps/maps/maps_select_brno.json new file mode 100644 index 00000000..c3b04df8 --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_brno.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 260, + "ypos": 92, + "width": 94, + "height": 42, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_select_brno" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_brno.png b/needles/gnome/apps/maps/maps_select_brno.png new file mode 100644 index 00000000..7a4db405 Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_brno.png differ diff --git a/needles/gnome/apps/maps/maps_select_denali.json b/needles/gnome/apps/maps/maps_select_denali.json new file mode 100644 index 00000000..d352aecd --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_denali.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "maps_select_denali" + ], + "area": [ + { + "xpos": 391, + "ypos": 131, + "width": 80, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_denali.png b/needles/gnome/apps/maps/maps_select_denali.png new file mode 100644 index 00000000..992b2024 Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_denali.png differ diff --git a/needles/gnome/apps/maps/maps_select_file.json b/needles/gnome/apps/maps/maps_select_file.json new file mode 100644 index 00000000..ff53a2bd --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_file.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 192, + "ypos": 158, + "width": 119, + "height": 13, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_select_file" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_file.png b/needles/gnome/apps/maps/maps_select_file.png new file mode 100644 index 00000000..115c8862 Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_file.png differ diff --git a/needles/gnome/apps/maps/maps_select_johngroats.json b/needles/gnome/apps/maps/maps_select_johngroats.json new file mode 100644 index 00000000..bed0f68b --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_johngroats.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 748, + "ypos": 257, + "width": 128, + "height": 41, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_select_johngroats" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_johngroats.png b/needles/gnome/apps/maps/maps_select_johngroats.png new file mode 100644 index 00000000..0a9091bb Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_johngroats.png differ diff --git a/needles/gnome/apps/maps/maps_select_landsend.json b/needles/gnome/apps/maps/maps_select_landsend.json new file mode 100644 index 00000000..2041f682 --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_landsend.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 748, + "ypos": 292, + "width": 132, + "height": 42, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_select_landsend" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_landsend.png b/needles/gnome/apps/maps/maps_select_landsend.png new file mode 100644 index 00000000..4e74e110 Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_landsend.png differ diff --git a/needles/gnome/apps/maps/maps_select_pune.json b/needles/gnome/apps/maps/maps_select_pune.json new file mode 100644 index 00000000..4e0e0e23 --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_pune.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "maps_select_pune" + ], + "area": [ + { + "xpos": 261, + "ypos": 94, + "width": 107, + "height": 41, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_pune.png b/needles/gnome/apps/maps/maps_select_pune.png new file mode 100644 index 00000000..7d29a88d Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_pune.png differ diff --git a/needles/gnome/apps/maps/maps_select_scarborough.json b/needles/gnome/apps/maps/maps_select_scarborough.json new file mode 100644 index 00000000..987eac48 --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_scarborough.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 263, + "ypos": 151, + "width": 119, + "height": 37, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_select_scarborough" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_scarborough.png b/needles/gnome/apps/maps/maps_select_scarborough.png new file mode 100644 index 00000000..cad9cdca Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_scarborough.png differ diff --git a/needles/gnome/apps/maps/maps_select_vilnius.json b/needles/gnome/apps/maps/maps_select_vilnius.json new file mode 100644 index 00000000..7ac661b7 --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_vilnius.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "maps_select_vilnius" + ], + "area": [ + { + "xpos": 261, + "ypos": 92, + "width": 115, + "height": 44, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_vilnius.png b/needles/gnome/apps/maps/maps_select_vilnius.png new file mode 100644 index 00000000..39f76b63 Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_vilnius.png differ diff --git a/needles/gnome/apps/maps/maps_select_wellington.json b/needles/gnome/apps/maps/maps_select_wellington.json new file mode 100644 index 00000000..9a9461c6 --- /dev/null +++ b/needles/gnome/apps/maps/maps_select_wellington.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "maps_select_wellington" + ], + "area": [ + { + "xpos": 263, + "ypos": 95, + "width": 111, + "height": 39, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_select_wellington.png b/needles/gnome/apps/maps/maps_select_wellington.png new file mode 100644 index 00000000..f4402d06 Binary files /dev/null and b/needles/gnome/apps/maps/maps_select_wellington.png differ diff --git a/needles/gnome/apps/maps/maps_shortcuts_shown.json b/needles/gnome/apps/maps/maps_shortcuts_shown.json new file mode 100644 index 00000000..950d8f19 --- /dev/null +++ b/needles/gnome/apps/maps/maps_shortcuts_shown.json @@ -0,0 +1,29 @@ +{ + "area": [ + { + "xpos": 479, + "ypos": 244, + "width": 70, + "height": 18, + "type": "match" + }, + { + "xpos": 249, + "ypos": 298, + "width": 57, + "height": 19, + "type": "match" + }, + { + "xpos": 516, + "ypos": 298, + "width": 74, + "height": 18, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_shortcuts_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_shortcuts_shown.png b/needles/gnome/apps/maps/maps_shortcuts_shown.png new file mode 100644 index 00000000..20e06ffe Binary files /dev/null and b/needles/gnome/apps/maps/maps_shortcuts_shown.png differ diff --git a/needles/gnome/apps/maps/maps_switch_scale.json b/needles/gnome/apps/maps/maps_switch_scale.json new file mode 100644 index 00000000..6d4f2bdc --- /dev/null +++ b/needles/gnome/apps/maps/maps_switch_scale.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 39, + "ypos": 98, + "width": 78, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_switch_scale" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_switch_scale.png b/needles/gnome/apps/maps/maps_switch_scale.png new file mode 100644 index 00000000..22ef3af0 Binary files /dev/null and b/needles/gnome/apps/maps/maps_switch_scale.png differ diff --git a/needles/gnome/apps/maps/maps_website_opened.json b/needles/gnome/apps/maps/maps_website_opened.json new file mode 100644 index 00000000..78b1616b --- /dev/null +++ b/needles/gnome/apps/maps/maps_website_opened.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 215, + "ypos": 83, + "width": 272, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "maps_website_opened" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/maps/maps_website_opened.png b/needles/gnome/apps/maps/maps_website_opened.png new file mode 100644 index 00000000..4f806391 Binary files /dev/null and b/needles/gnome/apps/maps/maps_website_opened.png differ diff --git a/templates.fif.json b/templates.fif.json index e5ae9b51..3da61ac3 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -1133,6 +1133,23 @@ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" } }, + "maps": { + "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/maps", + "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" + } + }, "nautilus": { "profiles": { "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, diff --git a/tests/applications/maps/aaa_setup.pm b/tests/applications/maps/aaa_setup.pm new file mode 100644 index 00000000..6fd14fb5 --- /dev/null +++ b/tests/applications/maps/aaa_setup.pm @@ -0,0 +1,58 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This will set up the environment for the Maps test. +# We only need to start Maps, make it full screen and +# save the status. + +sub run { + my $self = shift; + # Start the application + menu_launch_type("Maps"); + # Check it has started, or we got the permission prompt + assert_screen ['apps_run_maps', 'grant_access']; + if (match_has_tag 'grant_access') { + click_lastmatch; + assert_screen 'apps_run_maps'; + } + # Fullsize the window. + send_key("super-up"); + + # Find a location on the map. + + # If the Delete button is visible, click on it to delete the search bar + # and start a new search. If it is not visible, then press Ctrl-F + # to start the first search. + if (check_screen("maps_button_delete_bar")) { + click_lastmatch(); + } + else { + send_key("ctrl-f"); + } + sleep(1); + # Type in the first location + type_very_safely("brno"); + # Wait a little bit for the window to settle. + wait_still_screen(2); + # Click on the location + assert_and_click("maps_select_brno"); + # Let's not do any checks (they are done elsewhere), + # just let the screen settle and hit Esc to remove + # the infobox. + wait_still_screen(5); + # Dismis the info box (empty or full) + send_key("esc"); + # Check that Map is shown with the correct location + assert_screen("maps_found_brno", timeout => 90); +} + +sub test_flags { + return {fatal => 1, milestone => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/about.pm b/tests/applications/maps/about.pm new file mode 100644 index 00000000..b907c8d5 --- /dev/null +++ b/tests/applications/maps/about.pm @@ -0,0 +1,52 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps can show the About dialog. + +sub run { + my $location = shift; + my $softfail = 0; + + # Go to menu and click on About. + assert_and_click("gnome_burger_menu"); + assert_and_click("maps_menu_about"); + wait_still_screen(2); + + # Check that the About dialog is shown. + assert_screen("maps_about_shown"); + + # Check that you can visit application webpages + assert_and_click("maps_link_website"); + assert_screen("maps_website_opened"); + + # Close the web browser + send_key("alt-f4"); + + # Check that you can add a new issue + assert_and_click("maps_link_issue"); + assert_screen("maps_issues_opened"); + + # Close the web browser + send_key("alt-f4"); + + # Check that credits are shown. + assert_and_click("maps_button_credits"); + assert_screen("maps_credits_shown"); + send_key("esc"); + + # Check that legal info is shown. + assert_and_click("maps_button_legal"); + assert_screen("maps_legal_shown"); + send_key("esc"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/export.pm b/tests/applications/maps/export.pm new file mode 100644 index 00000000..3c14c5b7 --- /dev/null +++ b/tests/applications/maps/export.pm @@ -0,0 +1,48 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps can export the map into a file. + +sub run { + my $location = shift; + my $softfail = 0; + + # Go to menu and click on Export. + assert_and_click("gnome_burger_menu"); + assert_and_click("maps_menu_export"); + wait_still_screen(2); + + # Rename the file and export it. + # The name entry field should have focus already, so we are + # just going to rename the proposed file name. + send_key("ctrl-a"); + type_very_safely("exported-map.png"); + assert_and_click("maps_button_export"); + + # After the map has been exported, we will open + # it in an image viewer to see that it is correct. + # + # Open the Image Viewer + menu_launch_type("image viewer"); + assert_screen("apps_run_imageviewer"); + send_key("super-up"); + # Read the file into the application. + send_key("ctrl-o"); + assert_and_click("maps_select_file"); + assert_and_click("gnome_button_open"); + wait_still_screen(2); + + # Check that the map resembles the saved one. + assert_screen("maps_exported_map"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/route.pm b/tests/applications/maps/route.pm new file mode 100644 index 00000000..fbcf9e24 --- /dev/null +++ b/tests/applications/maps/route.pm @@ -0,0 +1,44 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps can plan some routes. + +sub run { + my $location = shift; + my $softfail = 0; + + # Click on the route planning button. + assert_and_click("maps_button_route"); + wait_still_screen(2); + + # Type in the starting point and confirm in the selector. + type_very_safely("Land's End"); + assert_and_click("maps_select_landsend"); + + # Type in the end point and confirm in the selector. + type_very_safely("John O'Groats"); + assert_and_click("maps_select_johngroats"); + + # Select walking + assert_and_click("maps_route_type_walk"); + assert_screen("maps_route_walk_shown", timeout => 90); + + # Select biking + assert_and_click("maps_route_type_bike"); + assert_screen("maps_route_bike_shown", timeout => 90); + + # Select car + assert_and_click("maps_route_type_car"); + assert_screen("maps_route_car_shown", timeout => 90); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/scale.pm b/tests/applications/maps/scale.pm new file mode 100644 index 00000000..d4969332 --- /dev/null +++ b/tests/applications/maps/scale.pm @@ -0,0 +1,34 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps can toggle a scale information +# in the bottom left corner. + +sub run { + my $location = shift; + + # Zoom in several times and check for zoomed map. + assert_screen("maps_scale_on"); + # Switch it of + assert_and_click("maps_button_overlays"); + assert_and_click("maps_switch_scale"); + wait_still_screen(2); + assert_screen("maps_scale_off"); + + # Switch it on again + assert_and_click("maps_button_overlays"); + assert_and_click("maps_switch_scale"); + wait_still_screen(2); + assert_screen("maps_scale_on"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/search_location.pm b/tests/applications/maps/search_location.pm new file mode 100644 index 00000000..b77fafec --- /dev/null +++ b/tests/applications/maps/search_location.pm @@ -0,0 +1,73 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps can search for various locations. + +sub search { + my $location = shift; + my $softfail = 0; + # If the Delete button is visible, click on it to delete the search bar + # and start a new search. If it is not visible, then press Ctrl-F + # to start the first search. + if (check_screen("maps_button_delete_bar")) { + click_lastmatch(); + } + else { + send_key("ctrl-f"); + } + sleep(1); + # Type in the first location + type_very_safely($location); + # Wait a little bit for the window to settle. + wait_still_screen(2); + # Click on the location + assert_and_click("maps_select_$location"); + # When a location is found, an infobox is shown with a picture + # and some details. Sometimes, there is a great lag and it + # seems to download the info for ages without any success. + # If this happens, increase the softfail variable which will + # be returned from the subroutine to track this. + unless (check_screen("maps_info_$location", timeout => 120)) { + $softfail++; + } + # Dismis the info box (empty or full) + send_key("esc"); + # Check that Map is shown with the correct location + assert_screen("maps_found_$location", timeout => 120); + return $softfail; +} + +sub run { + my $self = shift; + my $softfailCounter = 0; + # Let the test settle a bit after it is loaded from the saved image. + sleep(5); + # Search for the locations, catch the output of the subroutine to track + # the softfails - the overall number will be increased each time a softfail + # is reported from the subroutine. + my $result = search("vilnius"); + $softfailCounter = $softfailCounter + $result; + $result = search("denali"); + $softfailCounter = $softfailCounter + $result; + $result = search("wellington"); + $softfailCounter = $softfailCounter + $result; + $result = search("scarborough"); + $softfailCounter = $softfailCounter + $result; + $result = search("pune"); + $softfailCounter = $softfailCounter + $result; + # Record soft failure if there was any. + if ($softfailCounter > 0) { + record_soft_failure("The information were not loaded into the info box in $softfailCounter times."); + } +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/shortcuts.pm b/tests/applications/maps/shortcuts.pm new file mode 100644 index 00000000..481b5a23 --- /dev/null +++ b/tests/applications/maps/shortcuts.pm @@ -0,0 +1,27 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps shows the keyboard shortcuts dialogue. + +sub run { + my $location = shift; + + # Go to menu and click on Shortcuts. + assert_and_click("gnome_burger_menu"); + assert_and_click("maps_menu_shortcuts"); + wait_still_screen(2); + + # Check that Shortcuts have been shown. + assert_screen("maps_shortcuts_shown"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/maps/zoom.pm b/tests/applications/maps/zoom.pm new file mode 100644 index 00000000..3fed6d7d --- /dev/null +++ b/tests/applications/maps/zoom.pm @@ -0,0 +1,35 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if Maps can zoom in and out. + +sub run { + my $location = shift; + my $softfail = 0; + + # Zoom in several times and check for zoomed map. + assert_and_click("maps_button_zoom_in"); + foreach (my @counter = (1 .. 4)) { + click_lastmatch(); + } + assert_screen("maps_map_zoomed"); + + + # Zoom out several times and check for zoomed out map. + assert_and_click("maps_button_zoom_out"); + foreach (my @counter = (1 .. 4)) { + click_lastmatch(); + } + assert_screen("maps_found_brno"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: +