dox Executable Documentation

Choose scheduling

The user can choose which Scheduler to use when creating a schedule

Show options with default selected

Given the default scheduler is 'bar'
When I open the schedule
Then there should be 3 scheduler options
Then scheduler option 1 should have the key 'foo'
Then scheduler option 1 should have the name 'Some Scheduler'
Then scheduler option 1 should have the description 'Does magic'
Then scheduler option 2 should have the key 'bar'
Then scheduler option 3 should have the key 'baz'
Then the scheduler option 1 should not be selected
Then the scheduler option 2 should be selected
Then the scheduler option 3 should not be selected

Choose scheduler

Given the default scheduler is 'foo'
When I create a schedule using the scheduler 'baz'
Then the scheduler 'baz' should be used

Invalid scheduler chosen

When I try to create a schedule using the scheduler 'not'
Then the error should occur 'Invalid scheduler key: not'