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

Add sound test.

This commit is contained in:
Lukáš Růžička 2022-03-09 14:51:12 +01:00
parent fe6a206592
commit 71483d64b8
16 changed files with 146 additions and 22 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_volume_icon_off"
],
"area": [
{
"xpos": 958,
"ypos": 5,
"width": 28,
"height": 34,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"settings_menu_sound"
],
"area": [
{
"xpos": 18,
"ypos": 143,
"width": 75,
"height": 24,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"settings_sound_input"
],
"area": [
{
"xpos": 396,
"ypos": 639,
"width": 330,
"height": 28,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"settings_sound_output"
],
"area": [
{
"xpos": 396,
"ypos": 414,
"width": 349,
"height": 30,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"settings_sound_volume_off"
],
"area": [
{
"xpos": 898,
"ypos": 165,
"width": 22,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"settings_sound_volume_on"
],
"area": [
{
"xpos": 381,
"ypos": 111,
"width": 193,
"height": 72,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"settings_volume_on"
],
"area": [
{
"xpos": 898,
"ypos": 165,
"width": 22,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -1,22 +0,0 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This is to check up the Network tab.
sub run {
my $self = shift;
assert_and_click("settings_menu_network");
assert_screen("settings_network_wired_connected");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,41 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This is to check up the Sound tab.
sub run {
my $self = shift;
assert_and_click("settings_menu_sound");
# Check that the sound is enabled and loud.
assert_screen("settings_sound_volume_on");
# Check that there is an ouput device.
assert_screen("settings_sound_output");
# Check that there is an input device.
assert_screen("settings_sound_input");
# Switch off all the volume levels
while (check_screen("settings_volume_on")) {
assert_and_click("settings_volume_on");
}
# Check that the main volume is switched off.
assert_screen("settings_sound_volume_off");
# Check that the system volume icon is switched off.
assert_screen("gnome_volume_icon_off");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: