diff --git a/check-needles.py b/check-needles.py index fd719182..6114b87d 100755 --- a/check-needles.py +++ b/check-needles.py @@ -59,6 +59,7 @@ for testpath in testpaths: # versioned backgrounds and release IDs for rel in range(30, 100): testliterals.append(f"{rel}_background") + testliterals.append(f"{rel}_background_dark") testliterals.append(f"version_{rel}_ident") # anaconda id needles, using tell_source for source in ("workstation", "generic", "server"): @@ -128,6 +129,10 @@ for location in ("vilnius", "denali", "wellington", "poysdorf", "pune"): testliterals.append(f"maps_select_{location}") testliterals.append(f"maps_found_{location}") testliterals.append(f"maps_info_{location}") +# Needles for Gnome Panel +for percentage in ("zero", "fifty", "hundred"): + testliterals.append(f"panel_volume_bar_{percentage}") + testliterals.append(f"panel_volume_indicator_{percentage}") # 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/background/37_background_dark-20221123.json b/needles/background/37_background_dark-20221123.json new file mode 100644 index 00000000..1c4f3afd --- /dev/null +++ b/needles/background/37_background_dark-20221123.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "xpos": 559, + "width": 220, + "height": 144, + "ypos": 365 + } + ], + "properties": [], + "tags": [ + "37_background_dark" + ] +} \ No newline at end of file diff --git a/needles/background/37_background_dark-20221123.png b/needles/background/37_background_dark-20221123.png new file mode 100644 index 00000000..a9802c57 Binary files /dev/null and b/needles/background/37_background_dark-20221123.png differ diff --git a/needles/background/37_background_dark.json b/needles/background/37_background_dark.json new file mode 100644 index 00000000..3a6c1f55 --- /dev/null +++ b/needles/background/37_background_dark.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 559, + "ypos": 365, + "width": 220, + "height": 144, + "type": "match" + } + ], + "properties": [], + "tags": [ + "37_background_dark" + ] +} \ No newline at end of file diff --git a/needles/background/37_background_dark.png b/needles/background/37_background_dark.png new file mode 100644 index 00000000..589fdf37 Binary files /dev/null and b/needles/background/37_background_dark.png differ diff --git a/needles/background/38_background_dark.json b/needles/background/38_background_dark.json new file mode 100644 index 00000000..03404ebd --- /dev/null +++ b/needles/background/38_background_dark.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 583, + "ypos": 374, + "width": 188, + "height": 101, + "type": "match" + } + ], + "properties": [], + "tags": [ + "38_background_dark" + ] +} \ No newline at end of file diff --git a/needles/background/38_background_dark.png b/needles/background/38_background_dark.png new file mode 100644 index 00000000..5bcd317b Binary files /dev/null and b/needles/background/38_background_dark.png differ diff --git a/needles/gnome/apps/gnome-panel/37_background_dark.json b/needles/gnome/apps/gnome-panel/37_background_dark.json new file mode 100644 index 00000000..0145ff78 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/37_background_dark.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 583, + "ypos": 353, + "width": 255, + "height": 181, + "type": "match" + } + ], + "properties": [], + "tags": [ + "37_background_dark" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/37_background_dark.png b/needles/gnome/apps/gnome-panel/37_background_dark.png new file mode 100644 index 00000000..589fdf37 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/37_background_dark.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_add_world_clocks-20230324.json b/needles/gnome/apps/gnome-panel/panel_add_world_clocks-20230324.json new file mode 100644 index 00000000..398fed95 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_add_world_clocks-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "xpos": 617, + "ypos": 509, + "width": 138, + "height": 23 + } + ], + "properties": [], + "tags": [ + "panel_add_world_clocks" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_add_world_clocks-20230324.png b/needles/gnome/apps/gnome-panel/panel_add_world_clocks-20230324.png new file mode 100644 index 00000000..99f97f8a Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_add_world_clocks-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_add_world_clocks.json b/needles/gnome/apps/gnome-panel/panel_add_world_clocks.json new file mode 100644 index 00000000..91691b8f --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_add_world_clocks.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_add_world_clocks" + ], + "area": [ + { + "xpos": 617, + "ypos": 509, + "width": 138, + "height": 23, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_add_world_clocks.png b/needles/gnome/apps/gnome-panel/panel_add_world_clocks.png new file mode 100644 index 00000000..704a6b57 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_add_world_clocks.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_area_today-20230324.json b/needles/gnome/apps/gnome-panel/panel_area_today-20230324.json new file mode 100644 index 00000000..ff0eff59 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_area_today-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 29, + "ypos": 424, + "xpos": 618, + "width": 72 + } + ], + "properties": [], + "tags": [ + "panel_area_today" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_area_today-20230324.png b/needles/gnome/apps/gnome-panel/panel_area_today-20230324.png new file mode 100644 index 00000000..65d88210 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_area_today-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_area_today.json b/needles/gnome/apps/gnome-panel/panel_area_today.json new file mode 100644 index 00000000..47ddafcb --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_area_today.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_area_today" + ], + "area": [ + { + "xpos": 618, + "ypos": 424, + "width": 72, + "height": 29, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_area_today.png b/needles/gnome/apps/gnome-panel/panel_area_today.png new file mode 100644 index 00000000..eb46fcd3 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_area_today.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_calendar_shown-20230324.json b/needles/gnome/apps/gnome-panel/panel_calendar_shown-20230324.json new file mode 100644 index 00000000..538e5cc4 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_calendar_shown-20230324.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "height": 49, + "width": 146, + "ypos": 61, + "xpos": 606, + "type": "match" + }, + { + "type": "match", + "height": 45, + "ypos": 215, + "width": 257, + "xpos": 602 + } + ], + "properties": [], + "tags": [ + "panel_calendar_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_calendar_shown-20230324.png b/needles/gnome/apps/gnome-panel/panel_calendar_shown-20230324.png new file mode 100644 index 00000000..65d88210 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_calendar_shown-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_calendar_shown.json b/needles/gnome/apps/gnome-panel/panel_calendar_shown.json new file mode 100644 index 00000000..6d6d94af --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_calendar_shown.json @@ -0,0 +1,22 @@ +{ + "properties": [], + "tags": [ + "panel_calendar_shown" + ], + "area": [ + { + "xpos": 606, + "ypos": 61, + "width": 146, + "height": 49, + "type": "match" + }, + { + "xpos": 602, + "ypos": 215, + "width": 257, + "height": 45, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_calendar_shown.png b/needles/gnome/apps/gnome-panel/panel_calendar_shown.png new file mode 100644 index 00000000..e2185a11 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_calendar_shown.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_controls-20221014.json b/needles/gnome/apps/gnome-panel/panel_controls-20221014.json new file mode 100644 index 00000000..47ad245d --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_controls-20221014.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 6, + "width": 89, + "xpos": 923, + "type": "match", + "height": 23 + } + ], + "properties": [], + "tags": [ + "panel_controls" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_controls-20221014.png b/needles/gnome/apps/gnome-panel/panel_controls-20221014.png new file mode 100644 index 00000000..969bd964 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_controls-20221014.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_controls-20221123.json b/needles/gnome/apps/gnome-panel/panel_controls-20221123.json new file mode 100644 index 00000000..73a55b34 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_controls-20221123.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 6, + "height": 23, + "width": 89, + "type": "match", + "xpos": 923 + } + ], + "properties": [], + "tags": [ + "panel_controls" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_controls-20221123.png b/needles/gnome/apps/gnome-panel/panel_controls-20221123.png new file mode 100644 index 00000000..5db93c59 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_controls-20221123.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_controls.json b/needles/gnome/apps/gnome-panel/panel_controls.json new file mode 100644 index 00000000..ef90a024 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_controls.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 923, + "ypos": 6, + "width": 89, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_controls" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_controls.png b/needles/gnome/apps/gnome-panel/panel_controls.png new file mode 100644 index 00000000..2c9be352 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_controls.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_controls_vol_mid.json b/needles/gnome/apps/gnome-panel/panel_controls_vol_mid.json new file mode 100644 index 00000000..7f32454a --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_controls_vol_mid.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 931, + "ypos": 7, + "width": 80, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_controls" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_controls_vol_mid.png b/needles/gnome/apps/gnome-panel/panel_controls_vol_mid.png new file mode 100644 index 00000000..20e06f6b Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_controls_vol_mid.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_controls_vol_off.json b/needles/gnome/apps/gnome-panel/panel_controls_vol_off.json new file mode 100644 index 00000000..6a6e6051 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_controls_vol_off.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 928, + "ypos": 4, + "width": 82, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_controls" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_controls_vol_off.png b/needles/gnome/apps/gnome-panel/panel_controls_vol_off.png new file mode 100644 index 00000000..67f73537 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_controls_vol_off.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-20230324.json b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-20230324.json new file mode 100644 index 00000000..9ff3660f --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 648, + "ypos": 224, + "width": 98, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_darkmode" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-20230324.png b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-20230324.png new file mode 100644 index 00000000..e2ef9e8c Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active-20230324.json b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active-20230324.json new file mode 100644 index 00000000..44517b37 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 225, + "width": 98, + "xpos": 650, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_darkmode" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active-20230324.png b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active-20230324.png new file mode 100644 index 00000000..1cc15dd0 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active.json b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active.json new file mode 100644 index 00000000..116bf939 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 648, + "ypos": 211, + "width": 103, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_darkmode" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active.png b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active.png new file mode 100644 index 00000000..16dfd592 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode-active.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode.json b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode.json new file mode 100644 index 00000000..2f4974b0 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 648, + "ypos": 208, + "width": 106, + "height": 27, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_darkmode" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode.png b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode.png new file mode 100644 index 00000000..6ff12029 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_darkmode.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen-20230324.json b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen-20230324.json new file mode 100644 index 00000000..20cf0ef3 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 20, + "width": 20, + "ypos": 69, + "xpos": 917 + } + ], + "properties": [], + "tags": [ + "panel_ctrl_lockscreen" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen-20230324.png b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen-20230324.png new file mode 100644 index 00000000..e2ef9e8c Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen.json b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen.json new file mode 100644 index 00000000..3ae0f560 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_ctrl_lockscreen" + ], + "area": [ + { + "xpos": 917, + "ypos": 69, + "width": 24, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen.png b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen.png new file mode 100644 index 00000000..74813b7e Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_lockscreen.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active-20230324.json b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active-20230324.json new file mode 100644 index 00000000..e4359b27 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 27, + "width": 71, + "ypos": 162, + "xpos": 649, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_networks" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active-20230324.png b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active-20230324.png new file mode 100644 index 00000000..e2ef9e8c Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active.json b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active.json new file mode 100644 index 00000000..8e257569 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_ctrl_networks" + ], + "area": [ + { + "xpos": 647, + "ypos": 156, + "width": 71, + "height": 27, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active.png b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active.png new file mode 100644 index 00000000..d964176c Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_active.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive-20230324.json b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive-20230324.json new file mode 100644 index 00000000..4d5badf7 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 21, + "xpos": 649, + "ypos": 165, + "width": 70, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_networks" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive-20230324.png b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive-20230324.png new file mode 100644 index 00000000..65716934 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive.json b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive.json new file mode 100644 index 00000000..0fd229c8 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_ctrl_networks" + ], + "area": [ + { + "xpos": 647, + "ypos": 159, + "width": 72, + "height": 23, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive.png b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive.png new file mode 100644 index 00000000..579a2c90 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_networks_inactive.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot-20230324.json b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot-20230324.json new file mode 100644 index 00000000..26410831 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 20, + "xpos": 643, + "ypos": 67, + "width": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_ctrl_screenshot" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot-20230324.png b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot-20230324.png new file mode 100644 index 00000000..1eb3ccf1 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot.json b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot.json new file mode 100644 index 00000000..4ca6e4f4 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_ctrl_screenshot" + ], + "area": [ + { + "xpos": 645, + "ypos": 68, + "width": 23, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot.png b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot.png new file mode 100644 index 00000000..833414f2 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_ctrl_screenshot.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_datetime-1830.json b/needles/gnome/apps/gnome-panel/panel_datetime-1830.json new file mode 100644 index 00000000..c3232f0d --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_datetime-1830.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 22, + "width": 97, + "ypos": 6, + "xpos": 465 + } + ], + "properties": [], + "tags": [ + "panel_datetime" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_datetime-1830.png b/needles/gnome/apps/gnome-panel/panel_datetime-1830.png new file mode 100644 index 00000000..b1dcfcdb Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_datetime-1830.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_datetime-1831.json b/needles/gnome/apps/gnome-panel/panel_datetime-1831.json new file mode 100644 index 00000000..896e018d --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_datetime-1831.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_datetime" + ], + "area": [ + { + "xpos": 465, + "ypos": 6, + "width": 97, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_datetime-1831.png b/needles/gnome/apps/gnome-panel/panel_datetime-1831.png new file mode 100644 index 00000000..237a4b19 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_datetime-1831.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_datetime-1832.json b/needles/gnome/apps/gnome-panel/panel_datetime-1832.json new file mode 100644 index 00000000..091cb508 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_datetime-1832.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "width": 97, + "ypos": 6, + "xpos": 465, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_datetime" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_datetime-1832.png b/needles/gnome/apps/gnome-panel/panel_datetime-1832.png new file mode 100644 index 00000000..b02cb0e8 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_datetime-1832.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_screen_locked-20230330.json b/needles/gnome/apps/gnome-panel/panel_screen_locked-20230330.json new file mode 100644 index 00000000..4d957e2e --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_screen_locked-20230330.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 478, + "ypos": 298, + "width": 60, + "height": 40, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_screen_locked" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_screen_locked-20230330.png b/needles/gnome/apps/gnome-panel/panel_screen_locked-20230330.png new file mode 100644 index 00000000..a69a080d Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_screen_locked-20230330.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_screenshot_screen-20230324.json b/needles/gnome/apps/gnome-panel/panel_screenshot_screen-20230324.json new file mode 100644 index 00000000..bd94d448 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_screenshot_screen-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 34, + "xpos": 491, + "ypos": 569, + "width": 42 + } + ], + "properties": [], + "tags": [ + "panel_screenshot_screen" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_screenshot_screen-20230324.png b/needles/gnome/apps/gnome-panel/panel_screenshot_screen-20230324.png new file mode 100644 index 00000000..c261430f Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_screenshot_screen-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_screenshot_screen.json b/needles/gnome/apps/gnome-panel/panel_screenshot_screen.json new file mode 100644 index 00000000..1bb3217e --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_screenshot_screen.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_screenshot_screen" + ], + "area": [ + { + "xpos": 491, + "ypos": 569, + "width": 42, + "height": 34, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_screenshot_screen.png b/needles/gnome/apps/gnome-panel/panel_screenshot_screen.png new file mode 100644 index 00000000..96c57d6e Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_screenshot_screen.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_screenshot_trigger.json b/needles/gnome/apps/gnome-panel/panel_screenshot_trigger.json new file mode 100644 index 00000000..ecbc88d2 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_screenshot_trigger.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_screenshot_trigger" + ], + "area": [ + { + "xpos": 483, + "ypos": 643, + "width": 57, + "height": 56, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_screenshot_trigger.png b/needles/gnome/apps/gnome-panel/panel_screenshot_trigger.png new file mode 100644 index 00000000..a9ffb031 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_screenshot_trigger.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_select_weather_location-20230324.json b/needles/gnome/apps/gnome-panel/panel_select_weather_location-20230324.json new file mode 100644 index 00000000..b8a84896 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_select_weather_location-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 22, + "ypos": 567, + "xpos": 616, + "width": 184, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_select_weather_location" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_select_weather_location-20230324.png b/needles/gnome/apps/gnome-panel/panel_select_weather_location-20230324.png new file mode 100644 index 00000000..61e77889 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_select_weather_location-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_select_weather_location.json b/needles/gnome/apps/gnome-panel/panel_select_weather_location.json new file mode 100644 index 00000000..6faf5f45 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_select_weather_location.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_select_weather_location" + ], + "area": [ + { + "xpos": 616, + "ypos": 567, + "width": 184, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_select_weather_location.png b/needles/gnome/apps/gnome-panel/panel_select_weather_location.png new file mode 100644 index 00000000..58f6117d Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_select_weather_location.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb.json b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb.json new file mode 100644 index 00000000..c3cc2861 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_slider_donotdisturb" + ], + "area": [ + { + "xpos": 276, + "ypos": 577, + "width": 55, + "height": 31, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb.png b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb.png new file mode 100644 index 00000000..c0ab174f Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb_active.json b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb_active.json new file mode 100644 index 00000000..d92ac4aa --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb_active.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_slider_donotdisturb_active" + ], + "area": [ + { + "xpos": 163, + "ypos": 579, + "width": 166, + "height": 26, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb_active.png b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb_active.png new file mode 100644 index 00000000..40b78c1d Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_slider_donotdisturb_active.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_symbol_bell_off.json b/needles/gnome/apps/gnome-panel/panel_symbol_bell_off.json new file mode 100644 index 00000000..bbed4312 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_symbol_bell_off.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "panel_symbol_bell_off" + ], + "area": [ + { + "xpos": 571, + "ypos": 6, + "width": 44, + "height": 23, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_symbol_bell_off.png b/needles/gnome/apps/gnome-panel/panel_symbol_bell_off.png new file mode 100644 index 00000000..ed63025a Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_symbol_bell_off.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20221123.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20221123.json new file mode 100644 index 00000000..5ec0e2bf --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20221123.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 30, + "ypos": 108, + "width": 357, + "type": "match", + "xpos": 637, + "match": 60 + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_fifty" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20221123.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20221123.png new file mode 100644 index 00000000..67803d52 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20221123.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20230324.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20230324.json new file mode 100644 index 00000000..dd66f6e0 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 30, + "ypos": 109, + "width": 357, + "xpos": 640, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_fifty" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20230324.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20230324.png new file mode 100644 index 00000000..70212a74 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty.json new file mode 100644 index 00000000..18e2ded2 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 635, + "ypos": 108, + "width": 357, + "height": 30, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_fifty" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty.png new file mode 100644 index 00000000..e0604b0a Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_fifty.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20221123.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20221123.json new file mode 100644 index 00000000..94533774 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20221123.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 25, + "ypos": 110, + "width": 357, + "xpos": 639, + "type": "match", + "match": 60 + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_hundred" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20221123.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20221123.png new file mode 100644 index 00000000..a9b9ad71 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20221123.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20230324.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20230324.json new file mode 100644 index 00000000..d8ab88ab --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "ypos": 111, + "xpos": 640, + "width": 357, + "height": 25 + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_hundred" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20230324.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20230324.png new file mode 100644 index 00000000..cd878968 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred.json new file mode 100644 index 00000000..ff8fb577 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 637, + "ypos": 110, + "width": 354, + "height": 25, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_hundred" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred.png new file mode 100644 index 00000000..f4773754 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_hundred.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_zero-20230324.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero-20230324.json new file mode 100644 index 00000000..62354c5f --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero-20230324.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "height": 30, + "ypos": 108, + "width": 358, + "xpos": 640 + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_zero" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_zero-20230324.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero-20230324.png new file mode 100644 index 00000000..9731be4e Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero-20230324.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_zero.json b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero.json new file mode 100644 index 00000000..50749142 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 637, + "ypos": 107, + "width": 353, + "height": 30, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_bar_zero" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_bar_zero.png b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero.png new file mode 100644 index 00000000..b99bcfa8 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_bar_zero.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_indicator_fifty.json b/needles/gnome/apps/gnome-panel/panel_volume_indicator_fifty.json new file mode 100644 index 00000000..8d56a0e0 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_indicator_fifty.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 960, + "ypos": 6, + "width": 21, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_indicator_fifty" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_indicator_fifty.png b/needles/gnome/apps/gnome-panel/panel_volume_indicator_fifty.png new file mode 100644 index 00000000..e1e42916 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_indicator_fifty.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_indicator_hundred.json b/needles/gnome/apps/gnome-panel/panel_volume_indicator_hundred.json new file mode 100644 index 00000000..f667d6b4 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_indicator_hundred.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 959, + "ypos": 5, + "width": 23, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_indicator_hundred" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_indicator_hundred.png b/needles/gnome/apps/gnome-panel/panel_volume_indicator_hundred.png new file mode 100644 index 00000000..0524d0ff Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_indicator_hundred.png differ diff --git a/needles/gnome/apps/gnome-panel/panel_volume_indicator_zero.json b/needles/gnome/apps/gnome-panel/panel_volume_indicator_zero.json new file mode 100644 index 00000000..34dcb5b4 --- /dev/null +++ b/needles/gnome/apps/gnome-panel/panel_volume_indicator_zero.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 928, + "ypos": 7, + "width": 83, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "panel_volume_indicator_zero" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/gnome-panel/panel_volume_indicator_zero.png b/needles/gnome/apps/gnome-panel/panel_volume_indicator_zero.png new file mode 100644 index 00000000..67f73537 Binary files /dev/null and b/needles/gnome/apps/gnome-panel/panel_volume_indicator_zero.png differ diff --git a/templates.fif.json b/templates.fif.json index b1cb1836..203b6459 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -1148,6 +1148,22 @@ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" } }, + "gnome-panel": { + "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-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/gnome-panel", + "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" + } + }, "help_viewer": { "profiles": { "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, diff --git a/tests/applications/gnome-panel/aaa_setup.pm b/tests/applications/gnome-panel/aaa_setup.pm new file mode 100644 index 00000000..2c525f83 --- /dev/null +++ b/tests/applications/gnome-panel/aaa_setup.pm @@ -0,0 +1,36 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite prepares the environment. + +sub run { + my $self = shift; + + # Go to the root console to set up the test data and necessary stuff. + $self->root_console(tty => 3); + + # As we want to deal with certain elements during testing, + # we need to set the time and zones, otherwise we would need many needles. + # Disable the automatic time and zone settings + script_run("timedatectl set-ntp False"); + # Set the time zone + script_run("timedatectl set-timezone Europe/Prague"); + # Set the time + script_run('timedatectl set-time "2023-03-05 18:30:00"'); + # Make serial writable + script_run("chmod 666 /dev/ttyS0"); + # Return to Desktop + desktop_vt(); + # Check that the upper panel shows correct date and time. + assert_screen("panel_datetime"); +} + +sub test_flags { + return {fatal => 1, milestone => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/gnome-panel/darkmode.pm b/tests/applications/gnome-panel/darkmode.pm new file mode 100644 index 00000000..752634c2 --- /dev/null +++ b/tests/applications/gnome-panel/darkmode.pm @@ -0,0 +1,64 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite tests if dark mode can +# be toggled using the Panel controls. + +# This subroutine tries to find out to which version +# the existing background belongs. At first, it will check +# if the background is the latest background (needle exists), +# if not, it checks if it is the one before last or even the +# two before last. +# +# The purpose of this is not to check if the version +# has correct background, so we will not fail +# if we can still find at least one plausible to +# see if Darkmode can be toggled. +sub inspect_background { + my $version = get_release_number(); + my $older = $version - 1; + my $oldest = $version - 2; + # If the background matches the version, return it. + if (check_screen("${version}_background")) { + return $version; + } + # If we are here, check for the older background. + elsif (check_screen("${older}_background")) { + return $older; + } + elsif (check_screen("${oldest}_background")) { + record_soft_failure("The background version seems to be two versions old."); + return $oldest; + } + else { + die("The background image is different from what we expect."); + } +} + +sub run { + my $self = shift; + # Check that standard background is active + my $version = inspect_background(); + # Open panel controls and switch to dark mode. + assert_and_click("panel_controls"); + assert_and_click("panel_ctrl_darkmode"); + send_key("esc"); + # Check it has changed to dark mode. + assert_screen("${version}_background_dark"); + # Open panel controls and switch to light mode. + assert_and_click("panel_controls"); + assert_and_click("panel_ctrl_darkmode"); + send_key("esc"); + # Check it has changed to light mode. + assert_screen("${version}_background"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/gnome-panel/lockscreen.pm b/tests/applications/gnome-panel/lockscreen.pm new file mode 100644 index 00000000..1e25b9d4 --- /dev/null +++ b/tests/applications/gnome-panel/lockscreen.pm @@ -0,0 +1,33 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite Tests that the panel +# can be used to lock the screen. + +sub run { + my $self = shift; + # Click on the controls. + assert_and_click("panel_controls"); + # Click on Lock screen button to lock the screen + assert_and_click("panel_ctrl_lockscreen"); + # When the screen locks, wait 5 seconds and then + # hit enter to get the login prompt and check that + # the prompt is visible. The test can be finished + # here and rolled back because we test the login + # process elsewhere. + sleep 5; + send_key("ret"); + send_key("up"); + assert_screen("panel_screen_locked"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/gnome-panel/logout.pm b/tests/applications/gnome-panel/logout.pm new file mode 100644 index 00000000..009ca8bc --- /dev/null +++ b/tests/applications/gnome-panel/logout.pm @@ -0,0 +1,27 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite Tests that the panel +# can be used to log out from the session. + +sub run { + my $self = shift; + # Click on the controls. + assert_and_click("panel_controls"); + # Click on Lock screen button to lock the screen + assert_and_click("leave_button"); + assert_and_click("log_out_entry"); + assert_and_click("log_out_confirm"); + assert_screen("login_screen"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/gnome-panel/network.pm b/tests/applications/gnome-panel/network.pm new file mode 100644 index 00000000..c3d580e1 --- /dev/null +++ b/tests/applications/gnome-panel/network.pm @@ -0,0 +1,53 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite Tests that the panel +# can be used to switch network off and on. + +sub switch_network { + my $type = shift; + # Click on the controls. + assert_and_click("panel_controls"); + # Click on Network button to toggle network + assert_and_click("panel_ctrl_networks"); + wait_still_screen(2); + # Get rid of the window to be able to make tests + send_key("esc"); +} + +sub run { + my $self = shift; + # Toggle network + switch_network(); + + # Switch to console + $self->root_console(tty => 3); + # If there is no network the script fails which is exactly + # what we need. + assert_script_run("! ping -c 10 8.8.8.8"); + # Let's switch back to desktop. Normally, we would use the + # desktop_vt subroutine, but since we do not have networking + # it does not work reliably. Ergo, we will use the old known + # ctrl-alt-f2 + send_key("ctrl-alt-f2"); + sleep(3); + + # Toggle network + switch_network(); + # Switch to console + $self->root_console(tty => 3); + # If there is no network the script fails which is exactly + # what we need. + assert_script_run("ping -c 10 8.8.8.8"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/gnome-panel/screenshot.pm b/tests/applications/gnome-panel/screenshot.pm new file mode 100644 index 00000000..4c214b50 --- /dev/null +++ b/tests/applications/gnome-panel/screenshot.pm @@ -0,0 +1,30 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite tests if the screenshot can be taken +# using the controls on the panel. + +sub run { + my $self = shift; + # Open the controls + assert_and_click("panel_controls"); + # Take a screenshot + assert_and_click("panel_ctrl_screenshot"); + assert_and_click("panel_screenshot_screen"); + assert_and_click("panel_screenshot_trigger"); + # Check that the screenshot has been saved + $self->root_console(tty => 3); + # Confirm PNG files in the Screenshot directory + my $user = get_var("USER_LOGIN") // "test"; + assert_script_run("ls /home/$user/Pictures/Screenshots/*.png"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/gnome-panel/timedate.pm b/tests/applications/gnome-panel/timedate.pm new file mode 100644 index 00000000..243cca2f --- /dev/null +++ b/tests/applications/gnome-panel/timedate.pm @@ -0,0 +1,60 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite Tests that the middle part +# of the panel works, with the date and time. + +sub run { + my $self = shift; + # Click on the datetime part to see the details. + assert_and_click("panel_datetime"); + # Check that Calendar is shown. + assert_screen("panel_calendar_shown"); + + # Check that when we click on Today, + # Gnome Calendar will be opened - but not on Silverblue: + # https://github.com/fedora-silverblue/issue-tracker/issues/448 + unless (get_var("CANNED")) { + assert_and_click("panel_area_today"); + assert_screen("apps_run_calendar"); + send_key("alt-f4"); + wait_still_screen(2); + assert_and_click("panel_datetime"); + } + + # Check that when we click on World Clocks area + # the clock application will be shown. + assert_and_click("panel_add_world_clocks"); + assert_and_click("apps_run_clocks"); + send_key("alt-f4"); + wait_still_screen(2); + # + # Check that if we click on Select weather location + # the Weather app will start. + assert_and_click("panel_datetime"); + assert_and_click("panel_select_weather_location"); + assert_screen(["apps_run_weather", "grant_access"]); + click_lastmatch; + if (match_has_tag("grant_access")) { + assert_and_click("apps_run_weather"); + } + send_key("alt-f4"); + wait_still_screen(2); + # Check that if we click on Do not disturb, + # the slider moves and a silent regime indicator + # appears on the top panel. + assert_and_click("panel_datetime"); + assert_and_click("panel_slider_donotdisturb"); + assert_screen("panel_slider_donotdisturb_active"); + assert_screen("panel_symbol_bell_off"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/gnome-panel/volumebar.pm b/tests/applications/gnome-panel/volumebar.pm new file mode 100644 index 00000000..5957fc8b --- /dev/null +++ b/tests/applications/gnome-panel/volumebar.pm @@ -0,0 +1,49 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part of the suite tests if the volume levels +# are reflected in the volume bar in the control menu. +# + +sub check_volume { + my $level = shift; + # Check that the volume indicator changes + assert_screen("panel_volume_indicator_$level"); + # Open the control menu and check the volume bar + # shows the status of the volume level. + assert_and_click("panel_controls"); + assert_screen("panel_volume_bar_$level"); + # Close the control window + send_key("esc"); + wait_still_screen(2, similarity_level => 38); +} + +sub run { + my $self = shift; + # Open the terminal to enable us to set the + # volume level. + menu_launch_type("terminal"); + assert_screen("apps_run_terminal"); + # Set the volume to 0% + script_run('pactl set-sink-volume @DEFAULT_SINK@ 0%'); + # Check that it worked + check_volume("zero"); + # Set the volume to 50% + script_run('pactl set-sink-volume @DEFAULT_SINK@ 50%'); + # Check that it worked + check_volume("fifty"); + # Set the volume to 100% + script_run('pactl set-sink-volume @DEFAULT_SINK@ 100%'); + # Check that it worked + check_volume("hundred"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: