Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 39... Línea 39...
39
    And I should see "All my lovely users" in the "New schedule" "dialogue"
39
    And I should see "All my lovely users" in the "New schedule" "dialogue"
40
    And I set the field "Manually added users: User One, User Two" to "1"
40
    And I set the field "Manually added users: User One, User Two" to "1"
41
    And I click on "Save" "button" in the "New schedule" "dialogue"
41
    And I click on "Save" "button" in the "New schedule" "dialogue"
42
    Then I should see "Schedule created"
42
    Then I should see "Schedule created"
43
    And the following should exist in the "Report schedules" table:
43
    And the following should exist in the "Report schedules" table:
44
      | Name        | Starting from                           | Time last sent | Modified by |
44
      | Name        | Time last sent | Time next send                          | Modified by |
45
      | My schedule | ##tomorrow 11:00##%A, %d %B %Y, %H:%M## | Never          | Admin User  |
45
      | My schedule | Never          | ##tomorrow 11:00##%A, %d %B %Y, %H:%M## | Admin User  |
Línea 46... Línea 46...
46
 
46
 
47
  Scenario: Create report schedule for audience renamed using filters
47
  Scenario: Create report schedule for audience renamed using filters
48
    Given the "multilang" filter is "on"
48
    Given the "multilang" filter is "on"
49
    And the "multilang" filter applies to "content and headings"
49
    And the "multilang" filter applies to "content and headings"
Línea 84... Línea 84...
84
    And I click on "Cancel" "button" in the "Send schedule" "dialogue"
84
    And I click on "Cancel" "button" in the "Send schedule" "dialogue"
85
    And I press "Delete schedule" action in the "English" report row
85
    And I press "Delete schedule" action in the "English" report row
86
    And I should see "Are you sure you want to delete the schedule 'English'?" in the "Delete schedule" "dialogue"
86
    And I should see "Are you sure you want to delete the schedule 'English'?" in the "Delete schedule" "dialogue"
87
    And I click on "Cancel" "button" in the "Delete schedule" "dialogue"
87
    And I click on "Cancel" "button" in the "Delete schedule" "dialogue"
Línea -... Línea 88...
-
 
88
 
-
 
89
  Scenario Outline: Filter report schedules by date
-
 
90
    Given the following "core_reportbuilder > Schedules" exist:
-
 
91
      | report    | name          | timescheduled | timelastsent  |
-
 
92
      | My report | My schedule 1 | ##yesterday## | ##yesterday## |
-
 
93
      | My report | My schedule 2 | ##tomorrow##  | 0             |
-
 
94
    And I am on the "My report" "reportbuilder > Editor" page logged in as "admin"
-
 
95
    When I click on the "Schedules" dynamic tab
-
 
96
    And I click on "Filters" "button"
-
 
97
    And I set the following fields in the "<filter>" "core_reportbuilder > Filter" to these values:
-
 
98
      | <filter> operator | Range          |
-
 
99
      | <filter> from     | ##2 days ago## |
-
 
100
      | <filter> to       | ##today##      |
-
 
101
    And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
-
 
102
    Then I should see "Filters applied"
-
 
103
    And I should see "My schedule 1" in the "Report schedules" "table"
-
 
104
    And I should not see "My schedule 2" in the "Report schedules" "table"
-
 
105
    Examples:
-
 
106
      | filter         |
-
 
107
      | Time last sent |
-
 
108
      | Time next send |
88
 
109
 
89
  Scenario: Toggle report schedule
110
  Scenario: Toggle report schedule
90
    Given the following "core_reportbuilder > Schedules" exist:
111
    Given the following "core_reportbuilder > Schedules" exist:
91
      | report    | name        |
112
      | report    | name        |
92
      | My report | My schedule |
113
      | My report | My schedule |
Línea 108... Línea 129...
108
      | Starting from | ##tomorrow 11:00##  |
129
      | Starting from | ##tomorrow 11:00##  |
109
      | All users: All site users | 1       |
130
      | All users: All site users | 1       |
110
    And I click on "Save" "button" in the "Edit schedule details" "dialogue"
131
    And I click on "Save" "button" in the "Edit schedule details" "dialogue"
111
    Then I should see "Schedule updated"
132
    Then I should see "Schedule updated"
112
    And the following should exist in the "Report schedules" table:
133
    And the following should exist in the "Report schedules" table:
113
      | Name                | Starting from                           |
134
      | Name                | Time last sent | Time next send                          | Modified by |
114
      | My updated schedule | ##tomorrow 11:00##%A, %d %B %Y, %H:%M## |
135
      | My updated schedule | Never          | ##tomorrow 11:00##%A, %d %B %Y, %H:%M## | Admin User  |
Línea 115... Línea 136...
115
 
136
 
116
  Scenario: Send report schedule
137
  Scenario: Send report schedule
117
    Given the following "core_reportbuilder > Schedules" exist:
138
    Given the following "core_reportbuilder > Schedules" exist:
118
      | report    | name        |
139
      | report    | name        |
119
      | My report | My schedule |
140
      | My report | My schedule |
120
    And I am on the "My report" "reportbuilder > Editor" page logged in as "admin"
141
    And I am on the "My report" "reportbuilder > Editor" page logged in as "admin"
121
    And I click on the "Schedules" dynamic tab
142
    And I click on the "Schedules" dynamic tab
122
    When I press "Send schedule" action in the "My schedule" report row
143
    When I press "Send schedule" action in the "My schedule" report row
123
    And I click on "Confirm" "button" in the "Send schedule" "dialogue"
144
    And I click on "Confirm" "button" in the "Send schedule" "dialogue"
-
 
145
    Then I should see "Schedule sent"
-
 
146
    And I run all adhoc tasks
-
 
147
    And I reload the page
-
 
148
    And the following should exist in the "Report schedules" table:
-
 
149
      | Name        | Time last sent |
Línea 124... Línea 150...
124
    Then I should see "Schedule sent"
150
      | My schedule | ##today##%A##  |
125
 
151
 
126
  Scenario: Delete report schedule
152
  Scenario: Delete report schedule
127
    Given the following "core_reportbuilder > Schedules" exist:
153
    Given the following "core_reportbuilder > Schedules" exist: