1 @core @core_admin @core_reportbuilder
2 Feature: View task logs report and use its filters
3 In order to view task logs report and use its filters
5 I need to navigate to Server > Tasks > Task logs
8 # We need to run cron to populate the report.
12 Scenario Outline: Filter task logs by name
13 Given I log in as "admin"
14 And I change window size to "large"
15 And I navigate to "Server > Tasks > Task logs" in site administration
16 When I click on "Filters" "button"
17 And I set the following fields in the "Class name" "core_reportbuilder > Filter" to these values:
18 | Class name value | <name> |
19 And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
20 Then I should see "Filters applied"
21 And I should see "Filters (1)" in the "#dropdownFiltersButton" "css_element"
22 And the following should exist in the "reportbuilder-table" table:
24 | Scheduled | <match> |
25 And the following should not exist in the "reportbuilder-table" table:
27 | Scheduled | <nonmatch> |
29 | name | match | nonmatch |
30 | Cleanup event monitor events | Cleanup event monitor events | Incoming email pickup |
31 | Incoming email pickup | Incoming email pickup | Cleanup event monitor events |
34 # Task duration is dependent on many factors, we are asserting here that no task has a duration >2 minutes.
35 Scenario Outline: Filter task logs by duration
36 Given I log in as "admin"
37 And I change window size to "large"
38 And I navigate to "Server > Tasks > Task logs" in site administration
39 When I click on "Filters" "button"
40 And I set the following fields in the "Duration" "core_reportbuilder > Filter" to these values:
41 | Duration operator | <operator> |
42 | Duration value | 2 |
43 | Duration unit | minute(s) |
44 And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
45 Then I should see "Filters applied"
46 And I <shouldornotsee> "Nothing to display"
48 | operator | shouldornotsee |
49 | Less than | should not see |
50 | Greater than | should see |