1 |
efrain |
1 |
@tool @tool_task
|
|
|
2 |
Feature: Clear scheduled task fail delay
|
|
|
3 |
In order to stop failures from delaying a scheduled task run
|
|
|
4 |
As an admin
|
|
|
5 |
I need to be able to clear the fail delay on a task
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the scheduled task "\core\task\send_new_user_passwords_task" has a fail delay of "60" seconds
|
|
|
9 |
And I log in as "admin"
|
|
|
10 |
And I navigate to "Server > Tasks > Scheduled tasks" in site administration
|
|
|
11 |
|
|
|
12 |
Scenario: Any fail delay is highlighted
|
|
|
13 |
Then I should see "60" in the "Send new user passwords" "table_row"
|
|
|
14 |
And I should see "Clear" in the "Send new user passwords" "table_row"
|
|
|
15 |
And I should see "60" in the "td.table-danger" "css_element"
|
|
|
16 |
|
|
|
17 |
Scenario: Clear fail delay
|
|
|
18 |
When I click on "Clear" "text" in the "Send new user passwords" "table_row"
|
|
|
19 |
And I should see "Are you sure you want to clear the fail delay"
|
|
|
20 |
And I press "Clear"
|
|
|
21 |
|
|
|
22 |
Then I should not see "60" in the "Send new user passwords" "table_row"
|
|
|
23 |
And I should not see "Clear" in the "Send new user passwords" "table_row"
|
|
|
24 |
And I should see "Send new user passwords" in the "tr.table-primary" "css_element"
|
|
|
25 |
|
|
|
26 |
Scenario: Cancel clearing the fail delay
|
|
|
27 |
When I click on "Clear" "text" in the "Send new user passwords" "table_row"
|
|
|
28 |
And I press "Cancel"
|
|
|
29 |
|
|
|
30 |
Then I should see "60" in the "Send new user passwords" "table_row"
|
|
|
31 |
And I should see "Clear" in the "Send new user passwords" "table_row"
|
|
|
32 |
And I should see "Send new user passwords" in the "tr.table-primary" "css_element"
|