Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@customfield @customfield_textarea @javascript
2
Feature: Managers can manage course custom fields textarea
3
  In order to have additional data on the course
4
  As a manager
5
  I need to create, edit, remove and sort custom fields
6
 
7
  Background:
8
    Given the following "custom field categories" exist:
9
      | name              | component   | area   | itemid |
10
      | Category for test | core_course | course | 0      |
11
    And I log in as "admin"
12
    And I navigate to "Courses > Default settings > Course custom fields" in site administration
13
 
14
  Scenario: Create a custom course textarea field
15
    When I click on "Add a new custom field" "link"
16
    And I click on "Text area" "link"
17
    And I set the following fields to these values:
18
      | Name       | Test field |
19
      | Short name | testfield  |
20
    And I click on "Save changes" "button" in the "Adding a new Text area" "dialogue"
21
    Then I should see "Test field"
22
    And I log out
23
 
24
  Scenario: Edit a custom course textarea field
25
    When I click on "Add a new custom field" "link"
26
    And I click on "Text area" "link"
27
    And I set the following fields to these values:
28
      | Name       | Test field |
29
      | Short name | testfield  |
30
    And I click on "Save changes" "button" in the "Adding a new Text area" "dialogue"
31
    And I click on "Edit" "link" in the "Test field" "table_row"
32
    And I set the following fields to these values:
33
      | Name | Edited field |
34
    And I click on "Save changes" "button" in the "Updating Test field" "dialogue"
35
    Then I should see "Edited field"
36
    And I should not see "Test field"
37
    And I log out
38
 
39
  Scenario: Delete a custom course textarea field
40
    When I click on "Add a new custom field" "link"
41
    And I click on "Text area" "link"
42
    And I set the following fields to these values:
43
      | Name       | Test field |
44
      | Short name | testfield  |
45
    And I click on "Save changes" "button" in the "Adding a new Text area" "dialogue"
46
    And I click on "Delete" "link" in the "Test field" "table_row"
47
    And I click on "Yes" "button" in the "Confirm" "dialogue"
48
    Then I should not see "Test field"
49
    And I log out