Fix non-deterministic test in manager/unmanage

This commit is contained in:
Thibault Jouan 2015-04-21 03:41:14 +00:00
parent 3849471a1b
commit 04d999e1b0
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@ Feature: manager client unmanagement
Background:
Given uhwm is running
And a window is mapped
And a window is managed
Scenario: logs when a new client is unmanaged
When the window requests to be unmapped

View File

@ -1,11 +1,12 @@
Given /^a window is mapped$/ do
x_window_map
end
Given /^a (\w+) window is mapped$/ do |ident|
x_window_map ident: ident
end
Given /^a window is managed$/ do
x_window_map
uhwm_wait_output /manag.+#{x_window_name}/i
end
When /^I press the ([^ ]+) keys?$/ do |keys|
x_key keys
end