diff --git a/user/tests/behat/user_grade_navigation.feature b/user/tests/behat/user_grade_navigation.feature index 28d28bb13a5..392f3d61855 100644 --- a/user/tests/behat/user_grade_navigation.feature +++ b/user/tests/behat/user_grade_navigation.feature @@ -61,7 +61,6 @@ Feature: The student can navigate to their grades page and user grade report. And I follow "Grades" Then I should see "My badges from Acceptance test site web site" - @javascript Scenario: Log in as a parent and view a childs grades. When I log in as "admin" And I am on site homepage @@ -84,7 +83,7 @@ Feature: The student can navigate to their grades page and user grade report. And I click on "Preferences" "link" in the ".profile_tree" "css_element" And I follow "Assign roles relative to this user" And I follow "Parent" - And I click on "//select[@id='addselect']/descendant::option[contains(., 'Parent 1 (parent1@example.com)')]" "xpath_element" + And I set the field "Potential users" to "Parent 1 (parent1@example.com)" And I click on "Add" "button" And I log out And I log in as "parent1" diff --git a/user/tests/behat/view_preferences_page.feature b/user/tests/behat/view_preferences_page.feature index 4d40f8954bf..cf233acd86a 100644 --- a/user/tests/behat/view_preferences_page.feature +++ b/user/tests/behat/view_preferences_page.feature @@ -53,7 +53,6 @@ Feature: Access to preferences page And I follow "Student 2" Then I should see "Preferences" in the "#region-main" "css_element" - @javascript Scenario: A user with the appropriate permissions can view another user's permissions page. Given I log in as "admin" And I am on site homepage @@ -76,7 +75,7 @@ Feature: Access to preferences page And I click on "Preferences" "link" in the ".profile_tree" "css_element" And I follow "Assign roles relative to this user" And I follow "Parent" - And I click on "//select[@id='addselect']/descendant::option[contains(., 'Parent 1 (parent1@example.com)')]" "xpath_element" + And I set the field "Potential users" to "Parent 1 (parent1@example.com)" And I click on "Add" "button" And I log out And I log in as "parent"