Fix non-deterministic test in layout/unmanage

This commit is contained in:
Thibault Jouan 2015-04-21 08:20:37 +00:00
parent 1d9571766b
commit e8dacfa4ac
2 changed files with 5 additions and 8 deletions

View File

@ -2,8 +2,8 @@ Feature: layout client unmanagement
Background:
Given uhwm is running
And a first window is mapped
And a second window is mapped
And a first window is managed
And a second window is managed
Scenario: maps another window
When the second window is unmapped

View File

@ -1,10 +1,7 @@
Given /^a (\w+) window is mapped$/ do |ident|
Given /^a(?:\s(\w+))? window is managed$/ do |ident|
ident ||= :default
x_client(ident).map.sync
end
Given /^a window is managed$/ do
x_client.map.sync
uhwm_wait_output /manag.+#{x_client.name}/i
uhwm_wait_output /manag.+#{x_client(ident).name}/i
end
When /^I press the ([^ ]+) keys?$/ do |keys|