From 9f88778d40016714e19b07e04278fa7a9159ac2c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 15 Mar 2017 10:13:12 -0500 Subject: [PATCH] Add Behat test for sent announcement for all user - refs BT#12454 --- tests/behat/features/toolAnnouncement.feature | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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" - -