mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-15 03:03:11 +00:00
d85f199f13
these were duplicates. In GNOME 46-beta this dialog seems to be in 'light mode' at least some of the time, so we'll keep the 'light mode' gnome_allow needle we added for Snapshot but rename it and change its tags. We'll wipe the 'dark mode' gnome_allow because it should be just the same as the existing grant_access needle. The two tests that used gnome_allow are changed to use grant_access. Signed-off-by: Adam Williamson <awilliam@redhat.com>
34 lines
762 B
Perl
34 lines
762 B
Perl
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', 'grant_access'];
|
|
if (match_has_tag 'grant_access') {
|
|
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:
|