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/theme/boost/tests/behat/formerrors.feature
@javascript @theme_boost
Feature: Form errors only display after submit or change in Boost theme
  In order to have a more accessible way to display form errors
  As anyone
  I need to see errors only after I submit the form or change a field

  Background:
    Given the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1        |

  Scenario: Form error appears after submit, but not after just tabbing through
    When I log in as "admin"
    And I navigate to "Courses > Add a new course" in site administration
    And I click on "Course full name" "field"
    And I press the tab key
    Then I should not see "Missing full name"
    And I press "Save and display"
    And I should see "Missing full name"
    And the focused element is "Course full name" "field"

  Scenario: Form error appears immediately after change
    When I am on the "C1" "course editing" page logged in as "admin"
    And I set the field "Course full name" to ""
    And I press the tab key
    Then I should see "Missing full name"
    And the focused element is "Course full name" "field"