Add Behat test for sent announcement for all user - refs BT#12454

pull/2487/head
Angel Fernando Quiroz Campos 8 years ago
parent 0ea059a488
commit 9f88778d40
  1. 12
      tests/behat/features/toolAnnouncement.feature

@ -6,7 +6,7 @@ Feature: Announcement tool
Given I am a platform administrator
And I am on course "TEMP" homepage
Scenario: Create an announcement
Scenario: Create an announcement for admin user
Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
When I fill in the following:
| title | Announcement test |
@ -17,10 +17,16 @@ Feature: Announcement tool
And I press "submit"
Then I should see "Announcement has been added"
Scenario: Create an announcement for all users
Given I am on "/main/announcements/announcements.php?action=add&cidReq=TEMP"
When I fill in the following:
| title | Announcement test |
And I fill in ckeditor field "content" with "Announcement description"
And I press "submit"
Then I should see "Announcement has been added"
Scenario: Delete all announcements
Given I am on "/main/announcements/announcements.php?cidReq=TEMP"
When I follow "Clear list of announcements"
And I confirm the popup
Then I should see "All announcements have been deleted"

Loading…
Cancel
Save