Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 4... Línea 4...
4
  Background:
4
  Background:
5
    Given I log in as "admin"
5
    Given I log in as "admin"
Línea 6... Línea 6...
6
 
6
 
7
  Scenario: Default settings are equal to Full preset
7
  Scenario: Default settings are equal to Full preset
8
    Given I navigate to "Site admin presets" in site administration
-
 
9
    And I should see "Full"
-
 
10
    And I open the action menu in "Full" "table_row"
8
    Given I navigate to "Site admin presets" in site administration
11
    When I choose "Review settings and apply" in the open action menu
9
    When I press "Review settings and apply" action in the "Full" report row
Línea 12... Línea 10...
12
    Then I should not see "Setting changes"
10
    Then I should not see "Setting changes"
13
 
11
 
14
  Scenario: Applying Starter Moodle preset changes status and settings
12
  Scenario: Applying Starter Moodle preset changes status and settings
15
#   Checking the settings before applying Full Moodle preset (we're only testing one of each type).
13
#   Checking the settings before applying Full Moodle preset (we're only testing one of each type).
16
    Given I navigate to "Plugins > Activity modules > Manage activities" in site administration
14
    Given I navigate to "Plugins > Activity modules > Manage activities" in site administration
17
    And "Disable Database" "icon" should exist in the "Database" "table_row"
15
    And I should see "Disable Database"
18
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
16
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
19
    And "Hide" "icon" should exist in the "Restriction by grouping" "table_row"
17
    And I should see "Disable Restriction by grouping"
20
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
18
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
21
    And "Disable Logged in user" "icon" should exist in the "Logged in user" "table_row"
19
    And I should see "Disable Logged in user"
22
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
20
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
23
    And "Disable" "icon" should exist in the "Social" "table_row"
21
    And "Disable" "icon" should exist in the "Social" "table_row"
24
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
22
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
25
    And "Enabled" "icon" should exist in the "Immediate feedback with CBM" "table_row"
23
    And "Enabled" "link" should exist in the "Immediate feedback with CBM" "table_row"
26
    And I navigate to "Plugins > Question types > Manage question types" in site administration
24
    And I navigate to "Plugins > Question types > Manage question types" in site administration
27
    And "Enabled" "icon" should exist in the "Calculated multichoice" "table_row"
-
 
28
    When I navigate to "Site admin presets" in site administration
-
 
29
    And I should see "Starter"
25
    And "Enabled" "link" should exist in the "Calculated multichoice" "table_row"
30
    And I open the action menu in "Starter" "table_row"
26
    When I navigate to "Site admin presets" in site administration
31
    And I choose "Review settings and apply" in the open action menu
27
    And I press "Review settings and apply" action in the "Starter" report row
32
    And I should see "Setting changes"
28
    And I should see "Setting changes"
33
#   Checking all the settings to be applied for the Starter (if will help to identify possible regressions).
29
#   Checking all the settings to be applied for the Starter (if will help to identify possible regressions).
34
    And I should see "Activities" in the "Setting changes" "table"
30
    And I should see "Activities" in the "Setting changes" "table"
35
    And I should see "Activity chooser tabs" in the "Setting changes" "table"
-
 
36
    And I should see "Adaptive mode (no penalties)" in the "Setting changes" "table"
31
    And I should see "Activity chooser tabs" in the "Setting changes" "table"
37
    And I should see "Analytics" in the "Setting changes" "table"
32
    And I should see "Adaptive mode (no penalties)" in the "Setting changes" "table"
38
    And I should see "Blog menu" in the "Setting changes" "table"
33
    And I should see "Blog menu" in the "Setting changes" "table"
39
    And I should see "Blog tags" in the "Setting changes" "table"
34
    And I should see "Blog tags" in the "Setting changes" "table"
40
    And I should see "Calculated" in the "Setting changes" "table"
35
    And I should see "Calculated" in the "Setting changes" "table"
Línea 75... Línea 70...
75
    And I should see "Main menu" in the "Setting changes" "table"
70
    And I should see "Main menu" in the "Setting changes" "table"
76
    And I should see "Maximum number of attachments" in the "Setting changes" "table"
71
    And I should see "Maximum number of attachments" in the "Setting changes" "table"
77
    And "Maximum number of attachments" row "Current value" column of "Setting changes" table should contain "9"
72
    And "Maximum number of attachments" row "Current value" column of "Setting changes" table should contain "9"
78
    And "Maximum number of attachments" row "New value" column of "Setting changes" table should contain "3"
73
    And "Maximum number of attachments" row "New value" column of "Setting changes" table should contain "3"
79
    And I should see "Mentees" in the "Setting changes" "table"
74
    And I should see "Mentees" in the "Setting changes" "table"
80
    And I should see "Network servers" in the "Setting changes" "table"
-
 
81
    And I should see "Numerical" in the "Setting changes" "table"
75
    And I should see "Numerical" in the "Setting changes" "table"
82
    And I should see "Online users" in the "Setting changes" "table"
76
    And I should see "Online users" in the "Setting changes" "table"
83
    And I should see "Private files" in the "Setting changes" "table"
77
    And I should see "Private files" in the "Setting changes" "table"
84
    And I should see "Random short-answer matching" in the "Setting changes" "table"
78
    And I should see "Random short-answer matching" in the "Setting changes" "table"
85
    And I should see "Recent blog entries" in the "Setting changes" "table"
79
    And I should see "Recent blog entries" in the "Setting changes" "table"
Línea 107... Línea 101...
107
    And I click on "Apply" "button"
101
    And I click on "Apply" "button"
108
    And I navigate to "Advanced features" in site administration
102
    And I navigate to "Advanced features" in site administration
109
    And the field "Enable badges" matches value "0"
103
    And the field "Enable badges" matches value "0"
110
    And the field "Enable competencies" matches value "0"
104
    And the field "Enable competencies" matches value "0"
111
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
105
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
112
    And "Disable Database" "icon" should not exist in the "Database" "table_row"
106
    And I should see "Enable Database"
113
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
107
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
114
    And "Hide" "icon" should not exist in the "Restriction by grouping" "table_row"
108
    And I should see "Enable Restriction by grouping"
115
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
109
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
116
    And "Disable Logged in user" "icon" should not exist in the "Logged in user" "table_row"
110
    And I should see "Enable Logged in user"
117
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
111
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
118
    And "Disable" "icon" should not exist in the "Social" "table_row"
112
    And "Disable" "icon" should not exist in the "Social" "table_row"
119
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
113
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
120
    And "Enabled" "icon" should not exist in the "Immediate feedback with CBM" "table_row"
114
    And "Enabled" "link" should not exist in the "Immediate feedback with CBM" "table_row"
121
    And I navigate to "Plugins > Question types > Manage question types" in site administration
115
    And I navigate to "Plugins > Question types > Manage question types" in site administration
122
    And "Enabled" "icon" should not exist in the "Calculated multichoice" "table_row"
116
    And "Enabled" "link" should not exist in the "Calculated multichoice" "table_row"
Línea 123... Línea 117...
123
 
117
 
124
  Scenario: Re-applying Starter Moodle preset does not display setting changes
118
  Scenario: Re-applying Starter Moodle preset does not display setting changes
125
#   Apply Starter preset.
119
#   Apply Starter preset.
126
    Given I navigate to "Site admin presets" in site administration
-
 
127
    And I open the action menu in "Starter" "table_row"
120
    Given I navigate to "Site admin presets" in site administration
128
    And I choose "Review settings and apply" in the open action menu
121
    When I press "Review settings and apply" action in the "Starter" report row
129
    And I click on "Apply" "button"
122
    And I click on "Apply" "button"
130
    And I click on "Continue" "button"
123
    And I click on "Continue" "button"
131
#   When the Starter preset it's applied again, no changes should be displayed.
-
 
132
    When I open the action menu in "Starter" "table_row"
124
#   When the Starter preset it's applied again, no changes should be displayed.
133
    And I choose "Review settings and apply" in the open action menu
125
    And I press "Review settings and apply" action in the "Starter" report row
Línea 134... Línea 126...
134
    Then I should not see "Setting changes"
126
    Then I should not see "Setting changes"
135
 
127
 
136
  Scenario: Applied exported settings
128
  Scenario: Applied exported settings
137
    Given I navigate to "Site admin presets" in site administration
129
    Given I navigate to "Site admin presets" in site administration
138
    And I click on "Create preset" "button"
130
    And I click on "Create preset" "button"
139
    And I set the field "Name" to "Current"
131
    And I set the field "Name" to "Current"
140
    And I click on "Create preset" "button"
-
 
141
    And I should see "Current"
132
    And I click on "Create preset" "button"
142
    And I open the action menu in "Current" "table_row"
133
    And I should see "Current"
143
    When I choose "Review settings and apply" in the open action menu
134
    When I press "Review settings and apply" action in the "Current" report row
144
    And I should not see "Setting changes"
135
    And I should not see "Setting changes"
145
    And I click on "Continue" "button"
136
    And I click on "Continue" "button"
146
    And the following config values are set as admin:
-
 
147
      | enabled | 0 | core_competency |
137
    And the following config values are set as admin:
148
    And I open the action menu in "Current" "table_row"
138
      | enabled | 0 | core_competency |
149
    And I choose "Review settings and apply" in the open action menu
139
    And I press "Review settings and apply" action in the "Current" report row
150
    Then I should see "Setting changes"
140
    Then I should see "Setting changes"
151
    And I should see "Enable competencies" in the "core_competency" "table_row"
141
    And I should see "Enable competencies" in the "core_competency" "table_row"
152
    And I click on "Apply" "button"
142
    And I click on "Apply" "button"