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_*'
|
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 }
|
key(:f) { layout_some_action :testing_some_action }
|
||||||
"""
|
"""
|
||||||
And uhwm is running
|
|
||||||
When I press the alt+f keys
|
When I press the alt+f keys
|
||||||
Then the output must contain ":testing_some_action"
|
Then the output must contain ":testing_some_action"
|
||||||
|
|
||||||
Scenario: logs an error about unimplemented messages
|
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 }
|
key(:f) { layout_unknown_action }
|
||||||
"""
|
"""
|
||||||
And uhwm is running
|
|
||||||
When I press the alt+f keys
|
When I press the alt+f keys
|
||||||
Then the output must match /layout.+no.+implem.+handle_unknown_action/i
|
Then the output must match /layout.+no.+implem.+handle_unknown_action/i
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
Feature: `modifier' run control keyword
|
Feature: `modifier' run control keyword
|
||||||
|
|
||||||
Scenario: configures the modifier key
|
Scenario: configures the modifier key
|
||||||
Given a run control file with:
|
Given uhwm is running with this run control file:
|
||||||
"""
|
"""
|
||||||
modifier :ctrl
|
modifier :ctrl
|
||||||
"""
|
"""
|
||||||
And uhwm is running
|
|
||||||
When I press the ctrl+shift+q keys
|
When I press the ctrl+shift+q keys
|
||||||
Then uhwm must terminate successfully
|
Then uhwm must terminate successfully
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
Feature: `worker' run control keyword
|
Feature: `worker' run control keyword
|
||||||
|
|
||||||
Scenario: configures the modifier key
|
Scenario: configures the modifier key
|
||||||
Given a run control file with:
|
Given uhwm is running with this run control file:
|
||||||
"""
|
"""
|
||||||
worker :mux
|
worker :mux
|
||||||
"""
|
"""
|
||||||
And I start uhwm
|
|
||||||
Then the output must match /work.+event.+mux/i
|
Then the output must match /work.+event.+mux/i
|
||||||
|
Loading…
x
Reference in New Issue
Block a user