MDL-47810 tool_monitor: Updating behat scenarios introduced in MDL-47758
authorDavid Monllao <davidm@moodle.com>
Tue, 4 Nov 2014 03:53:19 +0000 (11:53 +0800)
committerDavid Monllao <davidm@moodle.com>
Tue, 4 Nov 2014 04:23:42 +0000 (12:23 +0800)
admin/tool/monitor/tests/behat/subscription.feature

index 826cd30..ccc8762 100644 (file)
@@ -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