Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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
1441 ariadna 9
    When I press "Review settings and apply" action in the "Full" report row
1 efrain 10
    Then I should not see "Setting changes"
11
 
12
  Scenario: Applying Starter Moodle preset changes status and settings
13
#   Checking the settings before applying Full Moodle preset (we're only testing one of each type).
14
    Given I navigate to "Plugins > Activity modules > Manage activities" in site administration
1441 ariadna 15
    And I should see "Disable Database"
1 efrain 16
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
1441 ariadna 17
    And I should see "Disable Restriction by grouping"
1 efrain 18
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
1441 ariadna 19
    And I should see "Disable Logged in user"
1 efrain 20
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
21
    And "Disable" "icon" should exist in the "Social" "table_row"
22
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
1441 ariadna 23
    And "Enabled" "link" should exist in the "Immediate feedback with CBM" "table_row"
1 efrain 24
    And I navigate to "Plugins > Question types > Manage question types" in site administration
1441 ariadna 25
    And "Enabled" "link" should exist in the "Calculated multichoice" "table_row"
1 efrain 26
    When I navigate to "Site admin presets" in site administration
1441 ariadna 27
    And I press "Review settings and apply" action in the "Starter" report row
1 efrain 28
    And I should see "Setting changes"
29
#   Checking all the settings to be applied for the Starter (if will help to identify possible regressions).
30
    And I should see "Activities" in the "Setting changes" "table"
31
    And I should see "Activity chooser tabs" in the "Setting changes" "table"
32
    And I should see "Adaptive mode (no penalties)" in the "Setting changes" "table"
33
    And I should see "Blog menu" in the "Setting changes" "table"
34
    And I should see "Blog tags" in the "Setting changes" "table"
35
    And I should see "Calculated" in the "Setting changes" "table"
36
    And I should see "Calculated multichoice" in the "Setting changes" "table"
37
    And I should see "Calculated simple" in the "Setting changes" "table"
38
    And I should see "Database" in the "Setting changes" "table"
39
    And "Database" row "Current value" column of "Setting changes" table should contain "Enabled"
40
    And "Database" row "New value" column of "Setting changes" table should contain "Disabled"
41
    And I should see "Cohort sync" in the "Setting changes" "table"
42
    And I should see "Comments" in the "Setting changes" "table"
43
    And I should see "Course completion status" in the "Setting changes" "table"
44
    And I should see "Courses" in the "Setting changes" "table"
45
    And I should see "Database" in the "Setting changes" "table"
46
    And I should see "Deferred feedback with CBM" in the "Setting changes" "table"
47
    And I should see "Drag and drop markers" in the "Setting changes" "table"
48
    And I should see "Drag and drop onto image" in the "Setting changes" "table"
49
    And I should see "Embedded answers (Cloze)" in the "Setting changes" "table"
50
    And I should see "Enable badges" in the "Setting changes" "table"
51
    And "Enable badges" row "Current value" column of "Setting changes" table should contain "Yes"
52
    And "Enable badges" row "New value" column of "Setting changes" table should contain "No"
53
    And I should see "Enable blogs" in the "Setting changes" "table"
54
    And I should see "Enable comments" in the "Setting changes" "table"
55
    And I should see "Enable competencies" in the "core_competency" "table_row"
56
    And I should see "Enable notes" in the "Setting changes" "table"
57
    And I should see "Enable tags functionality" in the "Setting changes" "table"
58
    And I should see "External tool" in the "Setting changes" "table"
59
    And I should see "Flickr" in the "Setting changes" "table"
60
    And I should see "Global search" in the "Setting changes" "table"
61
    And I should see "Guest access" in the "Setting changes" "table"
62
    And I should see "Guest login button" in the "Setting changes" "table"
63
    And I should see "IMS content package" in the "Setting changes" "table"
64
    And I should see "Immediate feedback with CBM" in the "Setting changes" "table"
65
    And I should see "Latest badges" in the "Setting changes" "table"
66
    And I should see "Learning plans" in the "Setting changes" "table"
67
    And I should see "Lesson" in the "Setting changes" "table"
68
    And I should see "Logged in user" in the "Setting changes" "table"
69
    And I should see "Login" in the "Setting changes" "table"
70
    And I should see "Main menu" in the "Setting changes" "table"
71
    And I should see "Maximum number of attachments" in the "Setting changes" "table"
72
    And "Maximum number of attachments" row "Current value" column of "Setting changes" table should contain "9"
73
    And "Maximum number of attachments" row "New value" column of "Setting changes" table should contain "3"
74
    And I should see "Mentees" in the "Setting changes" "table"
75
    And I should see "Numerical" in the "Setting changes" "table"
76
    And I should see "Online users" in the "Setting changes" "table"
77
    And I should see "Private files" in the "Setting changes" "table"
78
    And I should see "Random short-answer matching" in the "Setting changes" "table"
79
    And I should see "Recent blog entries" in the "Setting changes" "table"
80
    And I should see "Recently accessed courses" in the "Setting changes" "table"
81
    And I should see "Restriction by grouping" in the "Setting changes" "table"
82
    And I should see "Restriction by profile" in the "Setting changes" "table"
83
    And I should see "SCORM package" in the "Setting changes" "table"
84
    And I should see "Search forums" in the "Setting changes" "table"
85
    And I should see "Section links" in the "Setting changes" "table"
86
    And I should see "Server files" in the "Setting changes" "table"
87
    And I should see "Show data retention summary" in the "Setting changes" "table"
88
    And I should see "Social activities" in the "Setting changes" "table"
89
    And I should see "Social" in the "Setting changes" "table"
90
    And I should see "Starred courses" in the "Setting changes" "table"
91
    And I should see "Lesson" in the "Setting changes" "table"
92
    And I should see "Tags" in the "Setting changes" "table"
93
    And I should see "URL downloader" in the "Setting changes" "table"
94
    And I should see "Wiki" in the "Setting changes" "table"
95
    And I should see "Wikimedia" in the "Setting changes" "table"
96
    And I should see "Workshop" in the "Setting changes" "table"
97
#   Check filters and data formats strings are displayed properly.
98
    And I should see "Activity names auto-linking" in the "Setting changes" "table"
99
    And I should see "Javascript Object Notation (.json)" in the "Setting changes" "table"
100
#   Apply the Starter preset.
101
    And I click on "Apply" "button"
102
    And I navigate to "Advanced features" in site administration
103
    And the field "Enable badges" matches value "0"
104
    And the field "Enable competencies" matches value "0"
105
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
1441 ariadna 106
    And I should see "Enable Database"
1 efrain 107
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
1441 ariadna 108
    And I should see "Enable Restriction by grouping"
1 efrain 109
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
1441 ariadna 110
    And I should see "Enable Logged in user"
1 efrain 111
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
112
    And "Disable" "icon" should not exist in the "Social" "table_row"
113
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
1441 ariadna 114
    And "Enabled" "link" should not exist in the "Immediate feedback with CBM" "table_row"
1 efrain 115
    And I navigate to "Plugins > Question types > Manage question types" in site administration
1441 ariadna 116
    And "Enabled" "link" should not exist in the "Calculated multichoice" "table_row"
1 efrain 117
 
118
  Scenario: Re-applying Starter Moodle preset does not display setting changes
119
#   Apply Starter preset.
120
    Given I navigate to "Site admin presets" in site administration
1441 ariadna 121
    When I press "Review settings and apply" action in the "Starter" report row
1 efrain 122
    And I click on "Apply" "button"
123
    And I click on "Continue" "button"
124
#   When the Starter preset it's applied again, no changes should be displayed.
1441 ariadna 125
    And I press "Review settings and apply" action in the "Starter" report row
1 efrain 126
    Then I should not see "Setting changes"
127
 
128
  Scenario: Applied exported settings
129
    Given I navigate to "Site admin presets" in site administration
130
    And I click on "Create preset" "button"
131
    And I set the field "Name" to "Current"
132
    And I click on "Create preset" "button"
133
    And I should see "Current"
1441 ariadna 134
    When I press "Review settings and apply" action in the "Current" report row
1 efrain 135
    And I should not see "Setting changes"
136
    And I click on "Continue" "button"
137
    And the following config values are set as admin:
138
      | enabled | 0 | core_competency |
1441 ariadna 139
    And I press "Review settings and apply" action in the "Current" report row
1 efrain 140
    Then I should see "Setting changes"
141
    And I should see "Enable competencies" in the "core_competency" "table_row"
142
    And I click on "Apply" "button"
143
    And I navigate to "Advanced features" in site administration
144
    And the field "Enable competencies" matches value "1"