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/
|
.grep /Mask\z/
|
||||||
end
|
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}"
|
fail "cannot simulate X key `#{k}'" unless system "xdotool key #{k}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user