diff --git a/tests/behat/features/toolAnnouncement.feature b/tests/behat/features/toolAnnouncement.feature index 05523ab1ac..2bf4c63dad 100644 --- a/tests/behat/features/toolAnnouncement.feature +++ b/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" - -