[gnome-build-meta/sam/settings-test] WIP: Add a test for gnome-control-center




commit 370839951425493a4d474bd306289895dd01795b
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Fri Sep 24 10:39:18 2021 +0100

    WIP: Add a test for gnome-control-center

 openqa/main.pm                |  1 +
 openqa/tests/apps/settings.pm | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/openqa/main.pm b/openqa/main.pm
index b6fbf2556..f850a11b6 100644
--- a/openqa/main.pm
+++ b/openqa/main.pm
@@ -6,4 +6,5 @@ use needle;
 autotest::loadtest "tests/gnome_install.pm";
 autotest::loadtest "tests/gnome_welcome.pm";
 autotest::loadtest "tests/gnome_desktop.pm";
+autotest::loadtest "tests/apps/settings.pm";
 1;
diff --git a/openqa/tests/apps/settings.pm b/openqa/tests/apps/settings.pm
new file mode 100644
index 000000000..9f784229a
--- /dev/null
+++ b/openqa/tests/apps/settings.pm
@@ -0,0 +1,23 @@
+use base 'basetest';
+use strict;
+use testapi;
+
+sub run {
+    my $self = shift;
+    my $desktop_runner_hotkey = 'alt-f2';
+
+    # Ensure we are not in Activities view.
+    send_key('esc');
+
+    send_key($desktop_runner_hotkey);
+    type_string("gnome-control-center");
+    wait_still_screen(3);
+    save_screenshot;
+    send_key('alt-f4');
+}
+
+sub test_flags {
+    return { fatal => 1 };
+}
+
+1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]