HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/moodleAW/moodle15/admin/tool/behat/tests/behat/manipulate_forms.feature
@tool @tool_behat
Feature: Forms manipulation
  In order to interact with Moodle
  As a user
  I need to set forms values

  @javascript
  Scenario: Basic forms manipulation
    Given I log in as "admin"
    And I navigate to "Edit profile" node in "My profile settings"
    When I fill in "First name" with "Field value"
    And I select "Plain text area" from "Text editor"
    And I check "Unmask"
    Then the "First name" field should match "Field value" value
    And the "Text editor" select box should contain "Plain text area"
    And the "Unmask" checkbox should be checked
    And I uncheck "Unmask"
    And the "Unmask" checkbox should not be checked
    And I press "Update profile"

  @javascript
  Scenario: Expand all fieldsets and advanced elements
    Given the following "courses" exists:
      | fullname | shortname | category |
      | Course 1 | C1 | 0 |
    And I log in as "admin"
    And I follow "Course 1"
    And I turn editing mode on
    And I add a "Quiz" to section "1"
    When I expand all fieldsets
    Then I should see "Close the quiz"
    And I should see "Group mode"
    And I should see "Grouping"
    And I should not see "Show more..." in the "region-main" "region"
    And I should see "Show less..."