Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_user
2
Feature: Custom profile fields creation using UI
3
 
4
  @javascript
5
  Scenario Outline: Manual creation of basic custom profile fields
6
    Given I log in as "admin"
7
    And I navigate to "Users > Accounts > User profile fields" in site administration
8
    And I click on "Create a new profile field" "link"
9
    And I click on "<name>" "link"
10
    And I set the following fields to these values:
11
      | Short name                    | <shortname>  |
12
      | Name                          | <name>  |
13
    When I click on "Save changes" "button"
14
    Then I should see "<name>"
15
 
16
    Examples:
17
      | shortname | name       |
18
      | checkbox  | Checkbox   |
19
      | datetime  | Date/Time  |
20
      | textarea  | Text area  |
21
      | textinput | Text input |
22
 
23
  @javascript
24
  Scenario: Manual creation of drop-down menu custom profile field type
25
    Given I log in as "admin"
26
    And I navigate to "Users > Accounts > User profile fields" in site administration
27
    And I click on "Create a new profile field" "link"
28
    And I click on "Drop-down menu" "link"
29
    And I set the following fields to these values:
30
      | Short name  | dropdownmenu   |
31
      | Name        | Drop-down menu field |
32
    And I set the field "Menu options (one per line)" to multiline:
33
    """
34
    a
35
    b
36
    """
37
    When I click on "Save changes" "button"
38
    Then I should see "Drop-down menu field"
39
 
40
  @javascript
41
  Scenario: Manual creation of social custom profile field type
42
    Given I log in as "admin"
43
    And I navigate to "Users > Accounts > User profile fields" in site administration
44
    And I click on "Create a new profile field" "link"
45
    And I click on "Social" "link"
46
    And I set the following fields to these values:
47
      | Network type  | Web page  |
48
      | Short name    | social    |
49
    When I click on "Save changes" "button"
50
    Then I should see "Web page"