-
Notifications
You must be signed in to change notification settings - Fork 1
Example story #3
foeken edited this page Sep 13, 2010
·
8 revisions
As a planner
I want to be able to add, edit and remove units from the system
So that I can keep my units up to date
Scenario: No Units
Given there are no units in the system And the user with username 'Administrator' is logged in When he clicks the 'Admin' link And he clicks the 'Units' link Then he should see the word 'Listing units'
Scenario: Add a Unit
Given there are no units in the system And the user with username 'Administrator' is logged in When he clicks the 'Admin' link And he clicks the 'Units' link And he clicks the 'Add a new unit' link Then he should see the words 'New unit', 'Code' and 'This unit plans by' When he fills the 'Code' field with '7' And he fills the 'Name' field with 'Nedap' And he clicks the button Then he should be redirected by javascript And he should see the words 'Unit members of Nedap' and 'This team doesn't have any members'
Scenario: View Units
Given there are no units in the system And the user with username 'Administrator' is logged in Given a unit with name 'Monkey Huggers' exists When he clicks the 'Admin' link And he clicks the 'Units' link Then he should see the words 'Listing units' and 'Monkey Huggers'