toolAnnouncement.feature 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Feature: Announcement tool
  2. In order to use the Announcement tool
  3. The teachers should be able to create Announcements
  4. Background:
  5. Given I am a platform administrator
  6. And I am on course "TEMP" homepage
  7. Scenario: Create an announcement for admin user
  8. Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
  9. When I fill in the following:
  10. | title | Announcement test |
  11. And I press "choose_recipients"
  12. And I select "John Doe" from "users"
  13. And I press "add"
  14. And I fill in ckeditor field "content" with "Announcement description"
  15. And I follow "Preview"
  16. And wait for the page to be loaded
  17. Then I should see "Announcement will be sent to"
  18. Then I press "submit"
  19. Then I should see "Announcement has been added"
  20. Scenario: Create an announcement for all users
  21. Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
  22. When I fill in the following:
  23. | title | Announcement test |
  24. And I fill in ckeditor field "content" with "Announcement description"
  25. And I follow "Preview"
  26. And wait for the page to be loaded
  27. Then I should see "Announcement will be sent to"
  28. Then I press "submit"
  29. Then I should see "Announcement has been added"
  30. Scenario: Delete all announcements
  31. Given I am on "/main/announcements/announcements.php?cidReq=TEMP"
  32. When I follow "Clear list of announcements"
  33. And I confirm the popup
  34. Then I should see "All announcements have been deleted"