AutorÃa | Ultima modificación | Ver Log |
@mod @mod_url @javascriptFeature: Manage URL variablesIn order to maintain privacy for URLsAs a teacherI need to be able to manage URL variables safelyBackground:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |Scenario: Disabling URL variables hides Role names as URL variables check boxGiven the following config values are set as admin:| allowvariables | 1 | url |And I log in as "admin"And I navigate to "Plugins > Activity modules > URL" in site administrationWhen I click on "Allow URL variables" "checkbox"Then I should not see "Role names as URL variables"And I click on "Allow URL variables" "checkbox"And I should see "Role names as URL variables"Scenario: Disable the use of URL variablesGiven the following config values are set as admin:| allowvariables | 0 | url |When I log in as "admin"And I am on "Course 1" course homepage with editing mode onAnd I add a "URL" to section "1" using the activity chooserThen I should not see "URL variables"Scenario: Enable the use of URL variables without role namesGiven the following config values are set as admin:| allowvariables | 1 | url || rolesinparams | 0 | url |When I log in as "admin"And I am on "Course 1" course homepage with editing mode onAnd I add a "URL" to section "1" using the activity chooserThen I should see "URL variables"And I expand all fieldsetsAnd I should see "Full site name" in the "id_variable_0" "select"But I should not see "Roles" in the "id_variable_0" "select"Scenario: Enable the use of URL variables with role namesGiven the following config values are set as admin:| allowvariables | 1 | url || rolesinparams | 1 | url |When I log in as "admin"And I am on "Course 1" course homepage with editing mode onAnd I add a "URL" to section "1" using the activity chooserThen I should see "URL variables"And I expand all fieldsetsAnd I should see "Full site name" in the "id_variable_0" "select"And I should see "Your word for 'Student'" in the "id_variable_0" "select"