From cc37a58d0684a9f4007633e336cc0dbd09751ad2 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 28 Oct 2014 17:17:00 +0800 Subject: [PATCH] MDL-47919 tool_monitor: adjustments to behat tests --- admin/tool/monitor/tests/behat/subscription.feature | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/admin/tool/monitor/tests/behat/subscription.feature b/admin/tool/monitor/tests/behat/subscription.feature index 4fe3660242c..0aa1d155dd6 100644 --- a/admin/tool/monitor/tests/behat/subscription.feature +++ b/admin/tool/monitor/tests/behat/subscription.feature @@ -56,7 +56,7 @@ Feature: tool_monitor_subscriptions And I set the field "courseid" to "Course 1" And I set the field "cmid" to "All events" And I should see "Subscription successfully created" - When I click on "Delete subscription" "link" + 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\"?" And I press "Yes" Then I should see "Subscription successfully removed" @@ -77,7 +77,7 @@ Feature: tool_monitor_subscriptions And I set the field "cmid" to "All events" And I should see "Subscription successfully created" And "#toolmonitorsubs_r0" "css_element" should exist - When I click on "Delete subscription" "link" + When I click on "Delete subscription" "link" in the "New rule site level" "table_row" And I should see "Are you sure you want to delete this subscription for the rule \"New rule site level\"?" And I press "Yes" Then I should see "Subscription successfully removed" @@ -98,8 +98,7 @@ Feature: tool_monitor_subscriptions And I am on homepage And I trigger cron And I am on homepage - And I expand "My profile" node - When I follow "Messages" + When I navigate to "Messages" node in "My profile" And I follow "Do not reply to this email (1)" Then I should see "The course was viewed." @@ -119,8 +118,7 @@ Feature: tool_monitor_subscriptions And I follow "Course 1" And I trigger cron And I am on homepage - And I expand "My profile" node - When I follow "Messages" + When I navigate to "Messages" node in "My profile" And I follow "Do not reply to this email (1)" Then I should see "The course was viewed."