1 |
efrain |
1 |
@report @report_configlog @core_reportbuilder
|
|
|
2 |
Feature: In a report, admin can see configuration changes
|
|
|
3 |
In order see configuration changes
|
|
|
4 |
As an admin
|
|
|
5 |
I need to view the configuration changes report and use search to filter the report
|
|
|
6 |
|
|
|
7 |
# Set some config values so the report contains known data.
|
|
|
8 |
Background:
|
|
|
9 |
Given I log in as "admin"
|
|
|
10 |
And I change the window size to "large"
|
|
|
11 |
And I set the following administration settings values:
|
|
|
12 |
| Initial number of overall feedback fields | 5 |
|
|
|
13 |
| Maximum folder download size | 2048 |
|
|
|
14 |
| Default city | Perth |
|
|
|
15 |
|
|
|
16 |
@javascript
|
|
|
17 |
Scenario: Display configuration changes report
|
|
|
18 |
When I navigate to "Reports > Config changes" in site administration
|
|
|
19 |
Then the following should exist in the "reportbuilder-table" table:
|
11 |
efrain |
20 |
| First name | Plugin | Setting | New value | Original value |
|
1 |
efrain |
21 |
| Admin User | quiz | initialnumfeedbacks | 5 | 2 |
|
|
|
22 |
| Admin User | folder | maxsizetodownload | 2048 | 0 |
|
|
|
23 |
| Admin User | core | defaultcity | Perth | |
|
|
|
24 |
|
|
|
25 |
@javascript
|
|
|
26 |
Scenario Outline: Search configuration changes report
|
|
|
27 |
When I navigate to "Reports > Config changes" in site administration
|
|
|
28 |
And I click on "Filters" "button"
|
|
|
29 |
And I set the following fields in the "<field>" "core_reportbuilder > Filter" to these values:
|
|
|
30 |
| <field> operator | Contains |
|
|
|
31 |
| <field> value | <search> |
|
|
|
32 |
And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
|
|
|
33 |
And I should see "Filters applied"
|
|
|
34 |
Then the following should exist in the "reportbuilder-table" table:
|
|
|
35 |
| Plugin | Setting | New value |
|
|
|
36 |
| <plugin> | <setting> | <value> |
|
|
|
37 |
And I should not see "<excluded>" in the "reportbuilder-table" "table"
|
|
|
38 |
Examples:
|
|
|
39 |
| field | search | plugin | setting | value | excluded |
|
|
|
40 |
| Plugin | folder | folder | maxsizetodownload | 2048 | quiz |
|
|
|
41 |
| Setting | initialnumfeedbacks | quiz | initialnumfeedbacks | 5 | maxsizetodownload |
|
|
|
42 |
| Setting | maxsizetodownload | folder | maxsizetodownload | 2048 | initialnumfeedbacks |
|
|
|
43 |
| New value | Perth | core | defaultcity | Perth | maxsizetodownload |
|
|
|
44 |
| Full name | Admin User | core | defaultcity | Perth | zzzzzzzzz |
|