Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@core @core_reportbuilder @javascript
2
Feature: Manage custom fields for custom reports
3
  In order to manage custom fields for custom reports
4
  As an admin
5
  I need to create new and edit existing report custom fields
6
 
7
  Scenario: Create and edit custom fields in a custom report
8
    Given the following "core_reportbuilder > Report" exists:
9
      | name    | My report                                |
10
      | source  | core_user\reportbuilder\datasource\users |
11
      | default | 1                                        |
12
    When I log in as "admin"
13
    And I navigate to "Reports > Report builder > Custom report fields" in site administration
14
    Then I should see "Custom report fields"
15
    And I press "Add a new category"
16
    And I should see "Other fields"
17
    And I click on "Add a new custom field" "link"
18
    And I click on "Short text" "link"
19
    And I set the following fields to these values:
20
      | Name       | Description |
21
      | Short name | description |
22
    And I press "Save changes"
23
    And I navigate to "Reports > Report builder > Custom reports" in site administration
24
    And I press "Edit report details" action in the "My report" report row
25
    And I should see "Other fields" in the "Edit report details" "dialogue"
26
    And I set the following fields in the "Edit report details" "dialogue" to these values:
27
      | Description | My awesome report description |
28
    And I click on "Save" "button" in the "Edit report details" "dialogue"
29
    And I should see "Report updated"
30
    And I click on "Filters" "button"
31
    And I set the following fields in the "Description" "core_reportbuilder > Filter" to these values:
32
      | Description operator | Contains |
33
      | Description value    | awesome  |
34
    And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
35
    And the following should exist in the "Reports list" table:
36
      | Name      | Report source |
37
      | My report | Users         |
38
    And I set the following fields in the "Description" "core_reportbuilder > Filter" to these values:
39
      | Description operator | Does not contain |
40
      | Description value    | awesome          |
41
    And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
42
    And I should not see "My report"
43
    And I should see "Nothing to display"