From 0907f49b4eed0d825761e4ee16e50419c0cd5fdd Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 4 Nov 2014 11:53:19 +0800 Subject: [PATCH] MDL-47810 tool_monitor: Updating behat scenarios introduced in MDL-47758 --- admin/tool/monitor/tests/behat/subscription.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/tool/monitor/tests/behat/subscription.feature b/admin/tool/monitor/tests/behat/subscription.feature index 826cd30b020..ccc87627a78 100644 --- a/admin/tool/monitor/tests/behat/subscription.feature +++ b/admin/tool/monitor/tests/behat/subscription.feature @@ -45,7 +45,7 @@ Feature: tool_monitor_subscriptions And I follow "Course 1" And I navigate to "Event monitoring" node in "My profile settings" And I set the field "Select a course" to "Course 1" - When I set the field "Subscribe to rule \"New rule course level\"" to "All events" + When I follow "Subscribe to rule \"New rule course level\"" Then I should see "Subscription successfully created" And "#toolmonitorsubs_r0" "css_element" should exist @@ -54,7 +54,7 @@ Feature: tool_monitor_subscriptions And I follow "Course 1" And I navigate to "Event monitoring" node in "My profile settings" And I set the field "Select a course" to "Course 1" - And I set the field "Subscribe to rule \"New rule course level\"" to "All events" + And I follow "Subscribe to rule \"New rule course level\"" And I should see "Subscription successfully created" When I click on "Delete subscription" "link" in the "New rule course level" "table_row" And I should see "Are you sure you want to delete this subscription for the rule \"New rule course level\"?" @@ -66,7 +66,7 @@ Feature: tool_monitor_subscriptions Given I log in as "admin" And I navigate to "Event monitoring" node in "My profile settings" And I set the field "Select a course" to "Site" - When I set the field "Subscribe to rule \"New rule site level\"" to "All events" + When I follow "Subscribe to rule \"New rule site level\"" Then I should see "Subscription successfully created" And "#toolmonitorsubs_r0" "css_element" should exist @@ -74,7 +74,7 @@ Feature: tool_monitor_subscriptions Given I log in as "admin" And I navigate to "Event monitoring" node in "My profile settings" And I set the field "Select a course" to "Site" - And I set the field "Subscribe to rule \"New rule site level\"" to "All events" + And I follow "Subscribe to rule \"New rule site level\"" And I should see "Subscription successfully created" And "#toolmonitorsubs_r0" "css_element" should exist When I click on "Delete subscription" "link" in the "New rule site level" "table_row" @@ -92,7 +92,7 @@ Feature: tool_monitor_subscriptions And I follow "Course 1" And I navigate to "Event monitoring" node in "My profile settings" And I set the field "Select a course" to "Site" - And I set the field "Subscribe to rule \"New rule site level\"" to "All events" + And I follow "Subscribe to rule \"New rule site level\"" And I should see "Subscription successfully created" And "#toolmonitorsubs_r0" "css_element" should exist And I am on homepage @@ -111,7 +111,7 @@ Feature: tool_monitor_subscriptions And I follow "Course 1" And I navigate to "Event monitoring" node in "My profile settings" And I set the field "Select a course" to "Course 1" - And I set the field "Subscribe to rule \"New rule course level\"" to "All events" + And I follow "Subscribe to rule \"New rule course level\"" And I should see "Subscription successfully created" And "#toolmonitorsubs_r0" "css_element" should exist And I am on homepage -- 2.11.4.GIT