MDL-51903 behat: move guest enrolment to new UI
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 25 Oct 2015 20:13:08 +0000 (21:13 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 25 Oct 2015 20:13:08 +0000 (21:13 +0100)
With MDL-30674 we missed to change this use from the
old (course edition) UI to the new (enrolment methods) one.

blocks/navigation/tests/behat/expand_courses_node.feature

index 8c6bdd6..4e99a94 100644 (file)
@@ -39,11 +39,11 @@ Feature: Expand the courses nodes within the navigation block
     And I log in as "admin"
     And I am on site homepage
     And I follow "Course 2"
-    And I turn editing mode on
-    And I click on "Edit settings" "link" in the "Administration" "block"
+    And I navigate to "Enrolment methods" node in "Course administration > Users"
+    And I click on "Edit" "link" in the "Guest access" "table_row"
     And I set the following fields to these values:
       | Allow guest access | Yes |
-    And I press "Save and display"
+    And I press "Save changes"
     And I log out
 
   @javascript