Adjust to replacement of cheese with snapshot (Camera)

A new app called snapshot (Camera, on the menus) has replaced
cheese in F40 (but not F39). Adjust to that. We can simplify
this when F39 is out.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-10-15 09:36:13 -07:00
parent 1db0e7465a
commit c697ca171d
11 changed files with 69 additions and 35 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 23,
"width": 19,
"ypos": 263,
"type": "match",
"xpos": 185
}
],
"properties": [],
"tags": [
"apps_menu_camera"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"apps_menu_cheese"
"apps_menu_camera"
]
}
}

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 133,
"height": 128,
"ypos": 291,
"type": "match",
"xpos": 444
}
],
"properties": [],
"tags": [
"apps_run_camera"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"apps_run_cheese"
"apps_run_camera"
]
}
}

View File

@ -11,8 +11,6 @@
],
"properties": [],
"tags": [
"boxes_allow_inhibit",
"connections_allow_inhibit",
"vinagre_allow_inhibit"
"gnome_allow"
]
}

View File

Before

Width:  |  Height:  |  Size: 480 KiB

After

Width:  |  Height:  |  Size: 480 KiB

View File

@ -15,7 +15,7 @@ sub run {
assert_and_click('vinagre_enable_shortcuts');
sleep 2;
}
assert_and_click('vinagre_allow_inhibit');
assert_and_click('gnome_allow');
assert_and_click('vinagre_fullscreen');
}

View File

@ -0,0 +1,33 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Camera (snapshot) starts.
sub run {
my $self = shift;
# FIXME after F39 is stable, drop the old 'cheese' needles
# and always expect the access dialog
# Start the application
start_with_launcher('apps_menu_camera');
# Check that is started or we see the camera access dialog
assert_screen ['apps_run_camera', 'gnome_allow'];
if (match_has_tag 'gnome_allow') {
click_lastmatch;
assert_screen 'apps_run_camera';
}
# Register application
register_application("gnome-snapshot");
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -1,27 +0,0 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Cheese starts.
sub run {
my $self = shift;
# Start the application
start_with_launcher('apps_menu_cheese');
# Check that is started
assert_screen 'apps_run_cheese';
# Register application
register_application("gnome-cheese");
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: