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: The purpose of each input field collecting information about the user can be determined
3
 
4
  Background:
5
    Given the following "users" exist:
6
      | username | firstname          | lastname | email                           |
7
      | unicorn  | unicorn | 1        | unicorn@example.com |
8
    And the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1        | 0        | 1         |
11
    And the following "course enrolments" exist:
12
      | user                | course | role    |
13
      | unicorn             | C1     | student |
14
 
15
  @javascript
16
  Scenario: Fields for other users are not auto filled
17
    When I am on the "unicorn@example.com" "user > editing" page logged in as "admin"
18
    And I expand all fieldsets
19
    Then the field "Username" should not have purpose "username"
20
    And the field "First name" should not have purpose "given-name"
21
    And the field "Last name" should not have purpose "family-name"
22
    And the field "Email" should not have purpose "email"
23
    And the field "Select a country" should not have purpose "country"
24
    And I press "Cancel"
25
    And I follow "Preferred language"
26
    And the field "Preferred language" should not have purpose "language"
27
 
28
  @javascript
29
  Scenario: My own user fields are auto filled
30
    Given I log in as "unicorn"
31
    When I open my profile in edit mode
32
    And I expand all fieldsets
33
    Then the field "First name" should have purpose "given-name"
34
    And the field "Last name" should have purpose "family-name"
35
    And the field "Email" should have purpose "email"
36
    And the field "Select a country" should have purpose "country"
37
    And I press "Cancel"
38
    And I follow "Preferences" in the user menu
39
    And I follow "Preferred language"
40
    And the field "Preferred language" should have purpose "language"