470d59d3 |
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" |
14bcc65e |
10 | And I navigate to "Server > Tasks > Scheduled tasks" in site administration |
470d59d3 |
11 | |
12 | Scenario: Clear fail delay |
13 | When I click on "Clear" "text" in the "Send new user passwords" "table_row" |
14 | And I should see "Are you sure you want to clear the fail delay" |
15 | And I press "Clear" |
16 | |
17 | Then I should not see "60" in the "Send new user passwords" "table_row" |
18 | And I should not see "Clear" in the "Send new user passwords" "table_row" |
19 | |
20 | Scenario: Cancel clearing the fail delay |
21 | When I click on "Clear" "text" in the "Send new user passwords" "table_row" |
22 | And I press "Cancel" |
23 | |
24 | Then I should see "60" in the "Send new user passwords" "table_row" |
25 | And I should see "Clear" in the "Send new user passwords" "table_row" |