Refactor some steps in cucumber scenarios
This commit is contained in:
parent
66413b6ccb
commit
258812013b
@ -13,19 +13,17 @@ Feature: `layout_*' action keywords
|
||||
"""
|
||||
|
||||
Scenario: delegates messages matching `layout_*' to `layout_handle_*'
|
||||
Given a run control file with:
|
||||
Given uhwm is running with this run control file:
|
||||
"""
|
||||
key(:f) { layout_some_action :testing_some_action }
|
||||
"""
|
||||
And uhwm is running
|
||||
When I press the alt+f keys
|
||||
Then the output must contain ":testing_some_action"
|
||||
|
||||
Scenario: logs an error about unimplemented messages
|
||||
Given a run control file with:
|
||||
Given uhwm is running with this run control file:
|
||||
"""
|
||||
key(:f) { layout_unknown_action }
|
||||
"""
|
||||
And uhwm is running
|
||||
When I press the alt+f keys
|
||||
Then the output must match /layout.+no.+implem.+handle_unknown_action/i
|
||||
|
@ -1,10 +1,9 @@
|
||||
Feature: `modifier' run control keyword
|
||||
|
||||
Scenario: configures the modifier key
|
||||
Given a run control file with:
|
||||
Given uhwm is running with this run control file:
|
||||
"""
|
||||
modifier :ctrl
|
||||
"""
|
||||
And uhwm is running
|
||||
When I press the ctrl+shift+q keys
|
||||
Then uhwm must terminate successfully
|
||||
|
@ -1,9 +1,8 @@
|
||||
Feature: `worker' run control keyword
|
||||
|
||||
Scenario: configures the modifier key
|
||||
Given a run control file with:
|
||||
Given uhwm is running with this run control file:
|
||||
"""
|
||||
worker :mux
|
||||
"""
|
||||
And I start uhwm
|
||||
Then the output must match /work.+event.+mux/i
|
||||
|
Loading…
x
Reference in New Issue
Block a user