Improve UAT on layout

* Move cucumber features regarding the layout protocol in
  layout/protocol;
* Add new cucumber features to test uh-layout integration in uh-wm, at
  least simple mapping and focus behavior;
* Add new acceptance testing helpers
This commit is contained in:
Thibault Jouan
2015-04-18 19:33:47 +00:00
parent 2894783b57
commit 82a4161cc2
5 changed files with 56 additions and 25 deletions

View File

@@ -10,3 +10,11 @@ Then /^it must connect to X display$/ do
uhwm_wait_output 'Connected to'
expect(x_socket_check uhwm_pid).to be true
end
Then /^the window must be mapped$/ do
expect(x_window_map_state).to eq 'IsViewable'
end
Then /^the window must be focused$/ do
expect(x_focused_window_id).to eq x_window_id
end