Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @tool_admin_presets @javascript
2
Feature: I can apply presets
3
 
4
  Background:
5
    Given I log in as "admin"
6
 
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"
11
    When I choose "Review settings and apply" in the open action menu
12
    Then I should not see "Setting changes"
13
 
14
  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).
16
    Given I navigate to "Plugins > Activity modules > Manage activities" in site administration
17
    And "Disable Database" "icon" should exist in the "Database" "table_row"
18
    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"
20
    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"
22
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
23
    And "Disable" "icon" should exist in the "Social" "table_row"
24
    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"
26
    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"
30
    And I open the action menu in "Starter" "table_row"
31
    And I choose "Review settings and apply" in the open action menu
32
    And I should see "Setting changes"
33
#   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"
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"
37
    And I should see "Analytics" in the "Setting changes" "table"
38
    And I should see "Blog menu" in the "Setting changes" "table"
39
    And I should see "Blog tags" in the "Setting changes" "table"
40
    And I should see "Calculated" in the "Setting changes" "table"
41
    And I should see "Calculated multichoice" in the "Setting changes" "table"
42
    And I should see "Calculated simple" in the "Setting changes" "table"
43
    And I should see "Database" in the "Setting changes" "table"
44
    And "Database" row "Current value" column of "Setting changes" table should contain "Enabled"
45
    And "Database" row "New value" column of "Setting changes" table should contain "Disabled"
46
    And I should see "Cohort sync" in the "Setting changes" "table"
47
    And I should see "Comments" in the "Setting changes" "table"
48
    And I should see "Course completion status" in the "Setting changes" "table"
49
    And I should see "Courses" in the "Setting changes" "table"
50
    And I should see "Database" in the "Setting changes" "table"
51
    And I should see "Deferred feedback with CBM" in the "Setting changes" "table"
52
    And I should see "Drag and drop markers" in the "Setting changes" "table"
53
    And I should see "Drag and drop onto image" in the "Setting changes" "table"
54
    And I should see "Embedded answers (Cloze)" in the "Setting changes" "table"
55
    And I should see "Enable badges" in the "Setting changes" "table"
56
    And "Enable badges" row "Current value" column of "Setting changes" table should contain "Yes"
57
    And "Enable badges" row "New value" column of "Setting changes" table should contain "No"
58
    And I should see "Enable blogs" in the "Setting changes" "table"
59
    And I should see "Enable comments" in the "Setting changes" "table"
60
    And I should see "Enable competencies" in the "core_competency" "table_row"
61
    And I should see "Enable notes" in the "Setting changes" "table"
62
    And I should see "Enable tags functionality" in the "Setting changes" "table"
63
    And I should see "External tool" in the "Setting changes" "table"
64
    And I should see "Flickr" in the "Setting changes" "table"
65
    And I should see "Global search" in the "Setting changes" "table"
66
    And I should see "Guest access" in the "Setting changes" "table"
67
    And I should see "Guest login button" in the "Setting changes" "table"
68
    And I should see "IMS content package" in the "Setting changes" "table"
69
    And I should see "Immediate feedback with CBM" in the "Setting changes" "table"
70
    And I should see "Latest badges" in the "Setting changes" "table"
71
    And I should see "Learning plans" in the "Setting changes" "table"
72
    And I should see "Lesson" in the "Setting changes" "table"
73
    And I should see "Logged in user" in the "Setting changes" "table"
74
    And I should see "Login" in the "Setting changes" "table"
75
    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"
77
    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"
79
    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"
82
    And I should see "Online users" in the "Setting changes" "table"
83
    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"
85
    And I should see "Recent blog entries" in the "Setting changes" "table"
86
    And I should see "Recently accessed courses" in the "Setting changes" "table"
87
    And I should see "Restriction by grouping" in the "Setting changes" "table"
88
    And I should see "Restriction by profile" in the "Setting changes" "table"
89
    And I should see "SCORM package" in the "Setting changes" "table"
90
    And I should see "Search forums" in the "Setting changes" "table"
91
    And I should see "Section links" in the "Setting changes" "table"
92
    And I should see "Server files" in the "Setting changes" "table"
93
    And I should see "Show data retention summary" in the "Setting changes" "table"
94
    And I should see "Social activities" in the "Setting changes" "table"
95
    And I should see "Social" in the "Setting changes" "table"
96
    And I should see "Starred courses" in the "Setting changes" "table"
97
    And I should see "Lesson" in the "Setting changes" "table"
98
    And I should see "Tags" in the "Setting changes" "table"
99
    And I should see "URL downloader" in the "Setting changes" "table"
100
    And I should see "Wiki" in the "Setting changes" "table"
101
    And I should see "Wikimedia" in the "Setting changes" "table"
102
    And I should see "Workshop" in the "Setting changes" "table"
103
#   Check filters and data formats strings are displayed properly.
104
    And I should see "Activity names auto-linking" in the "Setting changes" "table"
105
    And I should see "Javascript Object Notation (.json)" in the "Setting changes" "table"
106
#   Apply the Starter preset.
107
    And I click on "Apply" "button"
108
    And I navigate to "Advanced features" in site administration
109
    And the field "Enable badges" matches value "0"
110
    And the field "Enable competencies" matches value "0"
111
    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"
113
    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"
115
    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"
117
    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"
119
    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"
121
    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"
123
 
124
  Scenario: Re-applying Starter Moodle preset does not display setting changes
125
#   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"
128
    And I choose "Review settings and apply" in the open action menu
129
    And I click on "Apply" "button"
130
    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"
133
    And I choose "Review settings and apply" in the open action menu
134
    Then I should not see "Setting changes"
135
 
136
  Scenario: Applied exported settings
137
    Given I navigate to "Site admin presets" in site administration
138
    And I click on "Create preset" "button"
139
    And I set the field "Name" to "Current"
140
    And I click on "Create preset" "button"
141
    And I should see "Current"
142
    And I open the action menu in "Current" "table_row"
143
    When I choose "Review settings and apply" in the open action menu
144
    And I should not see "Setting changes"
145
    And I click on "Continue" "button"
146
    And the following config values are set as admin:
147
      | enabled | 0 | core_competency |
148
    And I open the action menu in "Current" "table_row"
149
    And I choose "Review settings and apply" in the open action menu
150
    Then I should see "Setting changes"
151
    And I should see "Enable competencies" in the "core_competency" "table_row"
152
    And I click on "Apply" "button"
153
    And I navigate to "Advanced features" in site administration
154
    And the field "Enable competencies" matches value "1"