Support delay modification in x_key UAT helper
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user