toolAnnouncement.feature 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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-f"
  13. And I press "add"
  14. And I fill in ckeditor field "content" with "Announcement description"
  15. And I press "submit"
  16. Then I should see "Announcement has been added"
  17. Scenario: Create an announcement for all users
  18. Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
  19. When I fill in the following:
  20. | title | Announcement test |
  21. And I fill in ckeditor field "content" with "Announcement description"
  22. And I press "submit"
  23. Then I should see "Announcement has been added"
  24. Scenario: Delete all announcements
  25. Given I am on "/main/announcements/announcements.php?cidReq=TEMP"
  26. When I follow "Clear list of announcements"
  27. And I confirm the popup
  28. Then I should see "All announcements have been deleted"