1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00

Enhance the Infocenter test to test the presence of Disks module.

This commit is contained in:
Lukáš Růžička 2021-06-10 10:53:53 +02:00 committed by Adam Williamson
parent 2c366cc7a4
commit 9f0103a95f
9 changed files with 53 additions and 15 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"disks_runs"
],
"area": [
{
"xpos": 526,
"ypos": 46,
"width": 144,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"infocenter_menu_devices"
],
"area": [
{
"xpos": 113,
"ypos": 235,
"width": 18,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"infocenter_smart_status"
],
"area": [
{
"xpos": 114,
"ypos": 262,
"width": 16,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"vault_verify_password"
],
"area": [
{
"xpos": 62,
"ypos": 130,
"width": 155,
"height": 36,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

View File

@ -4,6 +4,8 @@ use testapi;
use utils; use utils;
# This test checks that Infocenter starts. # This test checks that Infocenter starts.
# It will also check that Infocenter contains the new module
# called plasma-disks.
sub run { sub run {
my $self = shift; my $self = shift;
@ -12,6 +14,12 @@ sub run {
menu_launch_type 'info'; menu_launch_type 'info';
# Check that it is started # Check that it is started
assert_screen 'infocenter_runs'; 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 # Close the application
quit_with_shortcut(); quit_with_shortcut();
} }