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/elearning_plateforme1/lib/tests/behat/readonlyform.feature
@core @core_form
Feature: Read-only forms should work
  In order to use certain forms on large Moodle installations
  As a user
  Relevant featuers of non-editable forms should still work

  @javascript
  Scenario: Shortforms expand collapsing should work for read-only forms - one-section form
    Given I log in as "admin"
    And I visit "/lib/tests/fixtures/readonlyform.php?sections=1"
    When I press "First section"
    Then "Name" "field" should be visible
    And the field "Name" matches value "Important information"
    And I press "First section"
    And "Name" "field" should not be visible

  @javascript
  Scenario: Shortforms expand collapsing should work for read-only forms - two-section form
    Given I log in as "admin"
    And I visit "/lib/tests/fixtures/readonlyform.php?sections=2"
    When I press "Expand all"
    Then "Name" "field" should be visible
    And the field "Name" matches value "Important information"
    And "Other" "field" should be visible
    And the field "Other" matches value "Other information"
    And I press "Collapse all"
    And "Name" "field" should not be visible
    And "Other" "field" should not be visible