moodle/admin/tests/behat/task_logs.feature
David Matamoros 53ed7abf4c MDL-71153 task: convert task logs table to a system report.
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.
2021-08-02 15:46:17 +08:00

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 |