Guest User

Untitled

a guest
Feb 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. Story: Managing organisations as an administrator
  2.  
  3. As an administrator
  4. I want to be able to manage the organisations
  5.  
  6. Scenario Listing without any organisations
  7.  
  8. Given a clean sheet
  9. Given a user is logged in as administrator
  10. When he follows "Organisations"
  11. Then he should see "No organisations found"
  12. And the page should be valid
  13.  
  14. Scenario Adding an organisation
  15.  
  16. Given a user is logged in as administrator
  17. When he follows "Organisations"
  18. When he follows "New organisation"
  19. And he fills in "Name" with "Nedap N.V."
  20. And he fills in "Abbreviation" with "nedap"
  21. And he presses "Create organisation"
  22. Then he should see the details:
  23. | Name | Nedap N.V. |
  24. | Abbreviation | nedap |
  25. And the page should be valid
  26.  
  27. Scenario Adding a duplicate organisation
  28.  
  29. Given a user is logged in as administrator
  30. When he follows "Organisations"
  31. When he follows "New organisation"
  32. And he fills in "Name" with "Nedap N.V."
  33. And he fills in "Abbreviation" with "nedap"
  34. And he presses "Create organisation"
  35. Then he should see an error message
  36. And he should see "Name is already taken"
  37. And the page should be valid
  38.  
  39. Scenario Adding an invalid organisation
  40.  
  41. Given a user is logged in as administrator
  42. When he follows "Organisations"
  43. When he follows "New organisation"
  44. And he fills in "Abbreviation" with "nedap"
  45. And he presses "Create organisation"
  46. Then he should see an error message
  47. And he should see "Name must not be blank"
  48. And the page should be valid
  49.  
  50. Scenario Listing with an organisations
  51.  
  52. Given a user is logged in as administrator
  53. When he follows "Organisations"
  54. Then he should see the list:
  55. | Name | Abbreviation |
  56. | Nedap N.V. | nedap |
  57. And the page should be valid
  58.  
  59. Scenario Editing an organisation
  60.  
  61. Given a user is logged in as administrator
  62. When he follows "Organisations"
  63. When he follows "Nedap N.V."
  64. When he follows "Edit"
  65. And he fills in "Name" with "Nedap N.V. 2"
  66. And he fills in "Abbreviation" with "nedap 2"
  67. And he presses "Update organisation"
  68. Then he should see the details:
  69. | Name | Nedap N.V. 2 |
  70. | Abbreviation | nedap 2 |
  71. And the page should be valid
Add Comment
Please, Sign In to add comment