MDL-48362 enrol: Correct singleselect use in behat test
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 29 Feb 2016 07:16:09 +0000 (15:16 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 29 Feb 2016 07:16:10 +0000 (15:16 +0800)
enrol/meta/tests/behat/enrol_meta.feature

index b3ca882..9a07371 100644 (file)
@@ -46,8 +46,7 @@ Feature: Enrolments are synchronised with meta courses
   Scenario: Add meta enrolment instance with groups
     When I follow "Course 3"
     And I navigate to "Enrolment methods" node in "Course administration > Users"
-    And I set the field "Add method" to "Course meta link"
-    And I press "Go"
+    And I select "Course meta link" from the "Add method" singleselect
     And I set the following fields to these values:
       | Link course  | Course 1      |
       | Add to group | Groupcourse 1 |
@@ -94,8 +93,7 @@ Feature: Enrolments are synchronised with meta courses
       | Link course  | Course 1      |
       | Add to group | Groupcourse 1 |
     And I press "Add method"
-    And I set the field "Add method" to "Course meta link"
-    And I press "Go"
+    And I select "Course meta link" from the "Add method" singleselect
     And I set the following fields to these values:
       | Link course  | Course 2      |
     And I press "Add method"