1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 02:13:08 +00:00

Type more safely in the gnome-panel volume bar test

The shifted characters here frequently get mistyped. Let's use
type_safely. If this isn't enough we can try very_safely.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-06-23 10:52:33 +02:00
parent 6fefd092e9
commit 3bce9f1007

View File

@ -27,15 +27,18 @@ sub run {
menu_launch_type("terminal");
assert_screen("apps_run_terminal");
# Set the volume to 0%
script_run('pactl set-sink-volume @DEFAULT_SINK@ 0%');
type_safely('pactl set-sink-volume @DEFAULT_SINK@ 0%');
send_key('ret');
# Check that it worked
check_volume("zero");
# Set the volume to 50%
script_run('pactl set-sink-volume @DEFAULT_SINK@ 50%');
type_safely('pactl set-sink-volume @DEFAULT_SINK@ 50%');
send_key('ret');
# Check that it worked
check_volume("fifty");
# Set the volume to 100%
script_run('pactl set-sink-volume @DEFAULT_SINK@ 100%');
type_safely('pactl set-sink-volume @DEFAULT_SINK@ 100%');
send_key('ret');
# Check that it worked
check_volume("hundred");
}