From 9f0103a95f6afba5aa2aba9eba266270b57002c2 Mon Sep 17 00:00:00 2001 From: Lukáš Růžička Date: Jun 18 2021 18:39:28 +0000 Subject: Enhance the Infocenter test to test the presence of Disks module. --- diff --git a/needles/kde/apps/disks_runs.json b/needles/kde/apps/disks_runs.json new file mode 100644 index 0000000..f22205c --- /dev/null +++ b/needles/kde/apps/disks_runs.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "disks_runs" + ], + "area": [ + { + "xpos": 526, + "ypos": 46, + "width": 144, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/kde/apps/disks_runs.png b/needles/kde/apps/disks_runs.png new file mode 100644 index 0000000..811f204 Binary files /dev/null and b/needles/kde/apps/disks_runs.png differ diff --git a/needles/kde/apps/infocenter_menu_devices.json b/needles/kde/apps/infocenter_menu_devices.json new file mode 100644 index 0000000..fd240df --- /dev/null +++ b/needles/kde/apps/infocenter_menu_devices.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "infocenter_menu_devices" + ], + "area": [ + { + "xpos": 113, + "ypos": 235, + "width": 18, + "height": 17, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/kde/apps/infocenter_menu_devices.png b/needles/kde/apps/infocenter_menu_devices.png new file mode 100644 index 0000000..90dbc91 Binary files /dev/null and b/needles/kde/apps/infocenter_menu_devices.png differ diff --git a/needles/kde/apps/infocenter_smart_status.json b/needles/kde/apps/infocenter_smart_status.json new file mode 100644 index 0000000..cf75cd0 --- /dev/null +++ b/needles/kde/apps/infocenter_smart_status.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "infocenter_smart_status" + ], + "area": [ + { + "xpos": 114, + "ypos": 262, + "width": 16, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/kde/apps/infocenter_smart_status.png b/needles/kde/apps/infocenter_smart_status.png new file mode 100644 index 0000000..7333687 Binary files /dev/null and b/needles/kde/apps/infocenter_smart_status.png differ diff --git a/needles/kde/apps/vault/vault_verify_password.json b/needles/kde/apps/vault/vault_verify_password.json deleted file mode 100644 index e36680f..0000000 --- a/needles/kde/apps/vault/vault_verify_password.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "properties": [], - "tags": [ - "vault_verify_password" - ], - "area": [ - { - "xpos": 62, - "ypos": 130, - "width": 155, - "height": 36, - "type": "match" - } - ] -} \ No newline at end of file diff --git a/needles/kde/apps/vault/vault_verify_password.png b/needles/kde/apps/vault/vault_verify_password.png deleted file mode 100644 index 17105e0..0000000 Binary files a/needles/kde/apps/vault/vault_verify_password.png and /dev/null differ diff --git a/tests/apps_startstop/kde/infocenter.pm b/tests/apps_startstop/kde/infocenter.pm index ae9cc96..5b14cc2 100644 --- a/tests/apps_startstop/kde/infocenter.pm +++ b/tests/apps_startstop/kde/infocenter.pm @@ -4,6 +4,8 @@ use testapi; use utils; # This test checks that Infocenter starts. +# It will also check that Infocenter contains the new module +# called plasma-disks. sub run { my $self = shift; @@ -12,6 +14,12 @@ sub run { menu_launch_type 'info'; # Check that it is started assert_screen 'infocenter_runs'; + # Open the Devices menu item. + assert_and_click "infocenter_menu_devices"; + # If the disks module is present, open it + assert_and_click "infocenter_smart_status"; + # Check that a correct screen is displayed. + assert_screen "disks_runs"; # Close the application quit_with_shortcut(); }