Support delay modification in x_key UAT helper
This commit is contained in:
parent
4bc513010e
commit
2731f9b3a3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user