Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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
1441 ariadna 13
    Then I should see "1 min" in the "Send new user passwords" "table_row"
1 efrain 14
    And I should see "Clear" in the "Send new user passwords" "table_row"
1441 ariadna 15
    And I should see "1 min" in the "td.table-danger" "css_element"
1 efrain 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"
1441 ariadna 21
    Then I should not see "1 min" in the "Send new user passwords" "table_row"
1 efrain 22
    And I should not see "Clear" in the "Send new user passwords" "table_row"
23
    And I should see "Send new user passwords" in the "tr.table-primary" "css_element"
24
 
25
  Scenario: Cancel clearing the fail delay
26
    When I click on "Clear" "text" in the "Send new user passwords" "table_row"
27
    And I press "Cancel"
1441 ariadna 28
    Then I should see "1 min" in the "Send new user passwords" "table_row"
1 efrain 29
    And I should see "Clear" in the "Send new user passwords" "table_row"
30
    And I should see "Send new user passwords" in the "tr.table-primary" "css_element"