From cbf878cce4d6d09757322c083ee8d0ee2e2f4399 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Thu, 2 Jun 2022 16:23:57 +0200 Subject: [PATCH] MDL-66453 uploadusers: Fix behat with classic This patch fixes the behat failures with classic for the scenario "Upload users enrolling them on courses and assign category roles". There is a "Participants" link hidden in the "Site pages" which is causing these failures. Apart from this, there was another issue because it was not possible to navigation with classic (I've added one extra step to visit homepage). --- admin/tool/uploaduser/tests/behat/upload_users.feature | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/admin/tool/uploaduser/tests/behat/upload_users.feature b/admin/tool/uploaduser/tests/behat/upload_users.feature index 1253e5abe29..a7af0df214d 100644 --- a/admin/tool/uploaduser/tests/behat/upload_users.feature +++ b/admin/tool/uploaduser/tests/behat/upload_users.feature @@ -235,18 +235,15 @@ Feature: Upload users And I should see "Tom Jones" And I should see "Trent Reznor" And I should see "reznor@example.com" - And I am on "management1" course homepage - And I should see "Participants" - And I follow "Participants" + And I am on the "management1" "enrolled users" page And I should see "Tom Jones" And I should see "Trent Reznor" And I should see "Aurora Jiang" And I should see "Student" - And I am on "film1" course homepage - And I should see "Participants" - And I follow "Participants" + And I am on the "film1" "enrolled users" page And I should see "Federico Fellini" And I should see "Student" + And I am on site homepage And I navigate to "Courses > Manage courses and categories" in site administration And I click on "permissions" action for "MGMT" in management category listing And I select "Assign roles" from the "jump" singleselect @@ -255,6 +252,7 @@ Feature: Upload users And I should see "Trent Reznor" And I should see "Course creator" And I should see "Aurora Jiang" + And I am on site homepage And I navigate to "Courses > Manage courses and categories" in site administration And I click on "permissions" action for "Film" in management category listing And I select "Assign roles" from the "jump" singleselect