diff --git a/features/steps/x_steps.rb b/features/steps/x_steps.rb index 3ac42aa..13d485c 100644 --- a/features/steps/x_steps.rb +++ b/features/steps/x_steps.rb @@ -20,6 +20,10 @@ When /^I press the ([^ ]+) keys? (\d+) times$/ do |keys, times| times.to_i.times { x_key keys } end +When /^I quickly press the ([^ ]+) keys? (\d+) times$/ do |keys, times| + x_key [keys] * times.to_i, delay: 0 +end + When /^a window requests to be mapped$/ do x_client.map.sync end diff --git a/features/workers/block.feature b/features/workers/block.feature index e24aa54..e3bfa08 100644 --- a/features/workers/block.feature +++ b/features/workers/block.feature @@ -10,6 +10,6 @@ Feature: blocking worker key(:f) { puts 'testing_worker_read' } """ And uhwm is running with options -v -w block - When I press the alt+f key 3 times + When I quickly press the alt+f key 1024 times And I quit uhwm - Then the output must match /(testing_worker_read)/ exactly 3 times + Then the output must match /(testing_worker_read)/ exactly 1024 times