diff --git a/lib/uh/wm/testing/acceptance_helpers.rb b/lib/uh/wm/testing/acceptance_helpers.rb index 061a5b5..4b93e08 100644 --- a/lib/uh/wm/testing/acceptance_helpers.rb +++ b/lib/uh/wm/testing/acceptance_helpers.rb @@ -98,7 +98,8 @@ expected `#{message}' (#{times}) not seen after #{e.timeout} seconds in: .grep /Mask\z/ end - def x_key k + def x_key *k, delay: 12 + k = k.join " key --delay #{delay} " fail "cannot simulate X key `#{k}'" unless system "xdotool key #{k}" end