Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_url @javascript
2
Feature: Manage URL variables
3
  In order to maintain privacy for URLs
4
  As a teacher
5
  I need to be able to manage URL variables safely
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category |
10
      | Course 1 | C1        | 0        |
11
 
12
  Scenario: Disabling URL variables hides Role names as URL variables check box
13
    Given the following config values are set as admin:
14
      | allowvariables | 1 | url |
15
    And I log in as "admin"
16
    And I navigate to "Plugins > Activity modules > URL" in site administration
17
    When I click on "Allow URL variables" "checkbox"
18
    Then I should not see "Role names as URL variables"
19
    And I click on "Allow URL variables" "checkbox"
20
    And I should see "Role names as URL variables"
21
 
22
  Scenario: Disable the use of URL variables
23
    Given the following config values are set as admin:
24
      | allowvariables | 0 | url |
25
    When I log in as "admin"
26
    And I am on "Course 1" course homepage with editing mode on
27
    And I add a "URL" to section "1" using the activity chooser
28
    Then I should not see "URL variables"
29
 
30
  Scenario: Enable the use of URL variables without role names
31
    Given the following config values are set as admin:
32
      | allowvariables | 1 | url |
33
      | rolesinparams  | 0 | url |
34
    When I log in as "admin"
35
    And I am on "Course 1" course homepage with editing mode on
36
    And I add a "URL" to section "1" using the activity chooser
37
    Then I should see "URL variables"
38
    And I expand all fieldsets
39
    And I should see "Full site name" in the "id_variable_0" "select"
40
    But I should not see "Roles" in the "id_variable_0" "select"
41
 
42
  Scenario: Enable the use of URL variables with role names
43
    Given the following config values are set as admin:
44
      | allowvariables | 1 | url |
45
      | rolesinparams  | 1 | url |
46
    When I log in as "admin"
47
    And I am on "Course 1" course homepage with editing mode on
48
    And I add a "URL" to section "1" using the activity chooser
49
    Then I should see "URL variables"
50
    And I expand all fieldsets
51
    And I should see "Full site name" in the "id_variable_0" "select"
52
    And I should see "Your word for 'Student'" in the "id_variable_0" "select"