HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/aaelearningb/admin/tool/task/tests/behat/clear_fail_delay.feature
@tool @tool_task
Feature: Clear scheduled task fail delay
  In order to stop failures from delaying a scheduled task run
  As an admin
  I need to be able to clear the fail delay on a task

  Background:
    Given the scheduled task "\core\task\send_new_user_passwords_task" has a fail delay of "60" seconds
    And I log in as "admin"
    And I navigate to "Server > Tasks > Scheduled tasks" in site administration

  Scenario: Any fail delay is highlighted
    Then I should see "60" in the "Send new user passwords" "table_row"
    And I should see "Clear" in the "Send new user passwords" "table_row"
    And I should see "60" in the "td.table-danger" "css_element"

  Scenario: Clear fail delay
    When I click on "Clear" "text" in the "Send new user passwords" "table_row"
    And I should see "Are you sure you want to clear the fail delay"
    And I press "Clear"

    Then I should not see "60" in the "Send new user passwords" "table_row"
    And I should not see "Clear" in the "Send new user passwords" "table_row"
    And I should see "Send new user passwords" in the "tr.table-primary" "css_element"

  Scenario: Cancel clearing the fail delay
    When I click on "Clear" "text" in the "Send new user passwords" "table_row"
    And I press "Cancel"

    Then I should see "60" in the "Send new user passwords" "table_row"
    And I should see "Clear" in the "Send new user passwords" "table_row"
    And I should see "Send new user passwords" in the "tr.table-primary" "css_element"