From 3bce9f10071d13d450c43adcc654d669e05bfd6f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 23 Jun 2023 10:52:33 +0200 Subject: [PATCH] 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 --- tests/applications/gnome-panel/volumebar.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/applications/gnome-panel/volumebar.pm b/tests/applications/gnome-panel/volumebar.pm index 5957fc8b..c755c9fb 100644 --- a/tests/applications/gnome-panel/volumebar.pm +++ b/tests/applications/gnome-panel/volumebar.pm @@ -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"); }