MDL-59437 behat: old "edit" cog to go to enrollments page is gone
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 13 Jul 2017 00:27:09 +0000 (02:27 +0200)
committerDamyon Wiese <damyon@moodle.com>
Thu, 13 Jul 2017 03:48:28 +0000 (11:48 +0800)
There use to be a little cot to easily navigate from the
participations page to the enrollments page.

In boost it was already hidden, but present and the test was still
working (non-javascript).

With the conversion, the functionality is 100% gone so, right now,
the only way to navigate from participats to enrollments (that will
dissappear with with unification), is using the course admin cog.

enrol/tests/behat/manage_enrolments_from_participants.feature

index e2e7745..3c0cb0f 100644 (file)
@@ -24,12 +24,12 @@ Feature: Manage enrollments from participants page
 
   Scenario: Check the participants link when "All partipants" selected
     Given I select "All participants" from the "roleid" singleselect
-    When I click on "Edit" "link" in the "region-main" "region"
+    And I navigate to "Enrolled users" node in "Course administration > Users"
     Then I should see "Enrolled users" in the "h2" "css_element"
     And the field "Role" matches value "All"
 
   Scenario: Check the participants link when "Student" selected
     Given I select "Student" from the "roleid" singleselect
-    When I click on "Edit" "link" in the "region-main" "region"
+    And I navigate to "Enrolled users" node in "Course administration > Users"
     Then I should see "Enrolled users" in the "h2" "css_element"
-    And the field "Role" matches value "Student"
+    And the field "Role" matches value "All"