From f292e44357ac739056f55e4ac1589f9cfde731e8 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Mon, 7 Mar 2022 13:36:23 +0100 Subject: [PATCH] Create a suite for System Settings. --- templates.fif.json | 16 +++++++++++ .../applications/system-settings/aaa_setup.pm | 28 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 tests/applications/system-settings/aaa_setup.pm diff --git a/templates.fif.json b/templates.fif.json index 0c5568b5..01e361cb 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -1067,6 +1067,22 @@ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" } }, + "gnome-control-center": { + "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/system-settings", + "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" + } + }, "gnome_text_editor": { "profiles": { "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, diff --git a/tests/applications/system-settings/aaa_setup.pm b/tests/applications/system-settings/aaa_setup.pm new file mode 100644 index 00000000..16096337 --- /dev/null +++ b/tests/applications/system-settings/aaa_setup.pm @@ -0,0 +1,28 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This is a pre-setting file for the Settings. Everything that needs to be set +# up before the actual testing goes here. + +sub run { + my $self = shift; + + # Start the application + menu_launch_type("settings"); + # Check that is started + assert_screen 'apps_run_settings'; + + # Fullsize the Settings window. + send_key("super-up"); + +} + +sub test_flags { + return {fatal => 1, milestone => 1}; +} + +1; + +# vim: set sw=4 et: