[openqa-tests/sam/apps-2] Add tests for 6 more core apps




commit 1babd89dc91b281f5aa6f7d5acea21ecf5d28783
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Mon Oct 10 16:31:53 2022 +0200

    Add tests for 6 more core apps
    
    See: https://gitlab.gnome.org/GNOME/openqa-tests/-/issues/4

 main.pm                         |  6 ++++++
 tests/app_gnome_clocks.pm       | 13 +++++++++++++
 tests/app_gnome_connections.pm  | 13 +++++++++++++
 tests/app_gnome_console.pm      | 13 +++++++++++++
 tests/app_gnome_contacts.pm     | 13 +++++++++++++
 tests/app_gnome_disk_utility.pm | 13 +++++++++++++
 tests/app_gnome_font_viewer.pm  | 13 +++++++++++++
 7 files changed, 84 insertions(+)
---
diff --git a/main.pm b/main.pm
index 4bdc9f3..7717ad2 100644
--- a/main.pm
+++ b/main.pm
@@ -16,6 +16,12 @@ autotest::loadtest("tests/app_evince.pm");
 autotest::loadtest("tests/app_gnome_calculator.pm");
 autotest::loadtest("tests/app_gnome_calendar.pm");
 autotest::loadtest("tests/app_gnome_characters.pm");
+autotest::loadtest("tests/app_gnome_clocks.pm");
+autotest::loadtest("tests/app_gnome_connections.pm");
+autotest::loadtest("tests/app_gnome_console.pm");
+autotest::loadtest("tests/app_gnome_contacts.pm");
+autotest::loadtest("tests/app_gnome_disk_utility.pm");
+autotest::loadtest("tests/app_gnome_font_viewer.pm");
 autotest::loadtest("tests/app_gnome_weather.pm");
 autotest::loadtest("tests/app_nautilus.pm");
 autotest::loadtest("tests/app_settings.pm");
diff --git a/tests/app_gnome_clocks.pm b/tests/app_gnome_clocks.pm
new file mode 100644
index 0000000..9d59d9d
--- /dev/null
+++ b/tests/app_gnome_clocks.pm
@@ -0,0 +1,13 @@
+use base 'app_test';
+use strict;
+use warnings;
+use testapi;
+use gnomeutils;
+
+sub run {
+    start_app('gnome-clocks');
+    assert_screen('app_gnome_clocks_home', 10);
+    close_app;
+}
+
+1;
diff --git a/tests/app_gnome_connections.pm b/tests/app_gnome_connections.pm
new file mode 100644
index 0000000..9af72f8
--- /dev/null
+++ b/tests/app_gnome_connections.pm
@@ -0,0 +1,13 @@
+use base 'app_test';
+use strict;
+use warnings;
+use testapi;
+use gnomeutils;
+
+sub run {
+    start_app('gnome-connections');
+    assert_screen('app_gnome_connections_home', 10);
+    close_app;
+}
+
+1;
diff --git a/tests/app_gnome_console.pm b/tests/app_gnome_console.pm
new file mode 100644
index 0000000..62e2bab
--- /dev/null
+++ b/tests/app_gnome_console.pm
@@ -0,0 +1,13 @@
+use base 'app_test';
+use strict;
+use warnings;
+use testapi;
+use gnomeutils;
+
+sub run {
+    start_app('gnome-console');
+    assert_screen('app_gnome_console_home', 10);
+    close_app;
+}
+
+1;
diff --git a/tests/app_gnome_contacts.pm b/tests/app_gnome_contacts.pm
new file mode 100644
index 0000000..6623d46
--- /dev/null
+++ b/tests/app_gnome_contacts.pm
@@ -0,0 +1,13 @@
+use base 'app_test';
+use strict;
+use warnings;
+use testapi;
+use gnomeutils;
+
+sub run {
+    start_app('gnome-contacts');
+    assert_screen('app_gnome_contacts_home', 10);
+    close_app;
+}
+
+1;
diff --git a/tests/app_gnome_disk_utility.pm b/tests/app_gnome_disk_utility.pm
new file mode 100644
index 0000000..0c4313e
--- /dev/null
+++ b/tests/app_gnome_disk_utility.pm
@@ -0,0 +1,13 @@
+use base 'app_test';
+use strict;
+use warnings;
+use testapi;
+use gnomeutils;
+
+sub run {
+    start_app('gnome-disk-utility');
+    assert_screen('app_gnome_disk_utility_home', 10);
+    close_app;
+}
+
+1;
diff --git a/tests/app_gnome_font_viewer.pm b/tests/app_gnome_font_viewer.pm
new file mode 100644
index 0000000..00031e9
--- /dev/null
+++ b/tests/app_gnome_font_viewer.pm
@@ -0,0 +1,13 @@
+use base 'app_test';
+use strict;
+use warnings;
+use testapi;
+use gnomeutils;
+
+sub run {
+    start_app('gnome-font-viewer');
+    assert_screen('app_gnome_font_viewer_home', 10);
+    close_app;
+}
+
+1;


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