mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 21:43:08 +00:00
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:
parent
1db0e7465a
commit
c697ca171d
15
needles/gnome/apps/apps_menu_camera-20231015.json
Normal file
15
needles/gnome/apps/apps_menu_camera-20231015.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 23,
|
||||
"width": 19,
|
||||
"ypos": 263,
|
||||
"type": "match",
|
||||
"xpos": 185
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"apps_menu_camera"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/apps_menu_camera-20231015.png
Normal file
BIN
needles/gnome/apps/apps_menu_camera-20231015.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
@ -10,6 +10,6 @@
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"apps_menu_cheese"
|
||||
"apps_menu_camera"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
15
needles/gnome/apps/apps_run_camera-20231015.json
Normal file
15
needles/gnome/apps/apps_run_camera-20231015.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"width": 133,
|
||||
"height": 128,
|
||||
"ypos": 291,
|
||||
"type": "match",
|
||||
"xpos": 444
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"apps_run_camera"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/apps_run_camera-20231015.png
Normal file
BIN
needles/gnome/apps/apps_run_camera-20231015.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
@ -10,6 +10,6 @@
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"apps_run_cheese"
|
||||
"apps_run_camera"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -11,8 +11,6 @@
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"boxes_allow_inhibit",
|
||||
"connections_allow_inhibit",
|
||||
"vinagre_allow_inhibit"
|
||||
"gnome_allow"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 480 KiB |
@ -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');
|
||||
}
|
||||
|
||||
|
33
tests/apps_startstop/gnome/camera.pm
Normal file
33
tests/apps_startstop/gnome/camera.pm
Normal 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:
|
@ -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:
|
Loading…
Reference in New Issue
Block a user