mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00

Convert to system report API provided by Report builder. The entity defined the column and filters, which are used by the system report class we have created. Report actions are also defined in the system report.
31 lines
1.4 KiB
Gherkin
31 lines
1.4 KiB
Gherkin
@core @core_admin @core_reportbuilder
|
|
Feature: View task logs report and use its filters
|
|
In order to view task logs report and use its filters
|
|
As an admin
|
|
I need to navigate to Server > Tasks > Task logs
|
|
|
|
Background:
|
|
# We need to run cron to populate the report.
|
|
Given I trigger cron
|
|
|
|
@javascript
|
|
Scenario: Filter task logs by name
|
|
Given I log in as "admin"
|
|
And I change window size to "large"
|
|
And I navigate to "Server > Tasks > Task logs" in site administration
|
|
And the following should exist in the "reportbuilder-table" table:
|
|
| Type | Name |
|
|
| Scheduled | Cleanup event monitor events |
|
|
| Scheduled | Synchronise self enrolments task |
|
|
When I click on "Filters" "button"
|
|
And I set the following fields in the "Name" "core_reportbuilder > Filter" to these values:
|
|
| Name operator | Contains |
|
|
| Name value | task\\clean_events |
|
|
And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
|
|
Then I should see "Filters applied"
|
|
And the following should exist in the "reportbuilder-table" table:
|
|
| Type | Name |
|
|
| Scheduled | Cleanup event monitor events |
|
|
And the following should not exist in the "reportbuilder-table" table:
|
|
| Type | Name |
|
|
| Scheduled | Synchronise self enrolments task |
|