1 |
efrain |
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
|
|
|
4 |
As an admin
|
|
|
5 |
I need to navigate to Server > Tasks > Task logs
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
# We need to run cron to populate the report.
|
|
|
9 |
Given I trigger cron
|
|
|
10 |
|
|
|
11 |
@javascript
|
|
|
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:
|
|
|
23 |
| Type | Name |
|
|
|
24 |
| Scheduled | <match> |
|
|
|
25 |
And the following should not exist in the "reportbuilder-table" table:
|
|
|
26 |
| Type | Name |
|
|
|
27 |
| Scheduled | <nonmatch> |
|
|
|
28 |
Examples:
|
|
|
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 |
|
|
|
32 |
|
|
|
33 |
@javascript
|
|
|
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"
|
|
|
47 |
Examples:
|
|
|
48 |
| operator | shouldornotsee |
|
|
|
49 |
| Less than | should not see |
|
|
|
50 |
| Greater than | should see |
|
|
|
51 |
|
|
|
52 |
@javascript
|
|
|
53 |
Scenario: Reset task log filters
|
|
|
54 |
Given I log in as "admin"
|
|
|
55 |
And I change window size to "large"
|
|
|
56 |
And I navigate to "Server > Tasks > Task logs" in site administration
|
|
|
57 |
When I click on "Filters" "button"
|
|
|
58 |
And I set the following fields in the "Result" "core_reportbuilder > Filter" to these values:
|
|
|
59 |
| Result operator | Is equal to |
|
|
|
60 |
| Result value | Fail |
|
|
|
61 |
And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
|
|
|
62 |
Then I should see "Filters applied"
|
|
|
63 |
And I should see "Filters (1)" in the "#dropdownFiltersButton" "css_element"
|
|
|
64 |
And I should see "Nothing to display"
|
|
|
65 |
And I click on "Reset all" "button" in the "[data-region='report-filters']" "css_element"
|
|
|
66 |
And I should see "Filters reset"
|
|
|
67 |
And I should not see "Filters (1)" in the "#dropdownFiltersButton" "css_element"
|
|
|
68 |
And I should see "Filters" in the "#dropdownFiltersButton" "css_element"
|
|
|
69 |
And "[data-region='report-filters']" "css_element" should be visible
|
|
|
70 |
And the following fields in the "Result" "core_reportbuilder > Filter" match these values:
|
|
|
71 |
| Result operator | Is any value |
|
|
|
72 |
And I should not see "Nothing to display"
|