Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Story: Managing organisations as an administrator
- As an administrator
- I want to be able to manage the organisations
- Scenario Listing without any organisations
- Given a clean sheet
- Given a user is logged in as administrator
- When he follows "Organisations"
- Then he should see "No organisations found"
- And the page should be valid
- Scenario Adding an organisation
- Given a user is logged in as administrator
- When he follows "Organisations"
- When he follows "New organisation"
- And he fills in "Name" with "Nedap N.V."
- And he fills in "Abbreviation" with "nedap"
- And he presses "Create organisation"
- Then he should see the details:
- | Name | Nedap N.V. |
- | Abbreviation | nedap |
- And the page should be valid
- Scenario Adding a duplicate organisation
- Given a user is logged in as administrator
- When he follows "Organisations"
- When he follows "New organisation"
- And he fills in "Name" with "Nedap N.V."
- And he fills in "Abbreviation" with "nedap"
- And he presses "Create organisation"
- Then he should see an error message
- And he should see "Name is already taken"
- And the page should be valid
- Scenario Adding an invalid organisation
- Given a user is logged in as administrator
- When he follows "Organisations"
- When he follows "New organisation"
- And he fills in "Abbreviation" with "nedap"
- And he presses "Create organisation"
- Then he should see an error message
- And he should see "Name must not be blank"
- And the page should be valid
- Scenario Listing with an organisations
- Given a user is logged in as administrator
- When he follows "Organisations"
- Then he should see the list:
- | Name | Abbreviation |
- | Nedap N.V. | nedap |
- And the page should be valid
- Scenario Editing an organisation
- Given a user is logged in as administrator
- When he follows "Organisations"
- When he follows "Nedap N.V."
- When he follows "Edit"
- And he fills in "Name" with "Nedap N.V. 2"
- And he fills in "Abbreviation" with "nedap 2"
- And he presses "Update organisation"
- Then he should see the details:
- | Name | Nedap N.V. 2 |
- | Abbreviation | nedap 2 |
- And the page should be valid
Add Comment
Please, Sign In to add comment