Test manager client unmanagement with cucumber
This commit is contained in:
7
features/manager/unmanage.feature
Normal file
7
features/manager/unmanage.feature
Normal file
@@ -0,0 +1,7 @@
|
||||
Feature: manager client unmanagement
|
||||
|
||||
Scenario: logs when a new client is unmanaged
|
||||
Given uhwm is running
|
||||
And a window is mapped
|
||||
When the window requests to be unmapped
|
||||
Then the output must match /unmanag.+xclient/i
|
@@ -1,3 +1,7 @@
|
||||
Given /^a window is mapped$/ do
|
||||
x_window_map
|
||||
end
|
||||
|
||||
Given /^a (\w+) window is mapped$/ do |ident|
|
||||
x_window_map ident: ident
|
||||
end
|
||||
@@ -10,6 +14,10 @@ When /^a window requests to be mapped$/ do
|
||||
x_window_map
|
||||
end
|
||||
|
||||
When /^the window requests to be unmapped$/ do
|
||||
x_window_unmap
|
||||
end
|
||||
|
||||
When /^the (\w+) window requests to be unmapped$/ do |ident|
|
||||
x_window_unmap ident: ident
|
||||
end
|
||||
|
Reference in New Issue
Block a user