Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 13... Línea 13...
13
    When I click on "Create new account" "link"
13
    When I click on "Create new account" "link"
14
    Then I should not see "I understand and agree"
14
    Then I should not see "I understand and agree"
15
    And I set the following fields to these values:
15
    And I set the following fields to these values:
16
      | Username      | user1                 |
16
      | Username      | user1                 |
17
      | Password      | user1                 |
17
      | Password      | user1                 |
18
      | Email address | user1@address.invalid |
18
      | Email address | student1@example.com  |
19
      | Email (again) | user1@address.invalid |
19
      | Email (again) | student1@example.com  |
20
      | First name    | User1                 |
20
      | First name    | User1                 |
21
      | Last name     | L1                    |
21
      | Last name     | L1                    |
22
    And I press "Create my new account"
22
    And I press "Create my new account"
23
    And I should see "Confirm your account"
23
    And I should see "Confirm your account"
24
    And I should see "An email should have been sent to your address at user1@address.invalid"
24
    And I should see "An email should have been sent to your address at student1@example.com"
25
    And I confirm email for "user1"
25
    And I confirm email for "user1"
26
    And I should see "Thanks, User1 L1"
26
    And I should see "Thanks, User1 L1"
27
    And I should see "Your registration has been confirmed"
27
    And I should see "Your registration has been confirmed"
28
    And I open my profile in edit mode
28
    And I open my profile in edit mode
29
    And the field "First name" matches value "User1"
29
    And the field "First name" matches value "User1"
Línea 43... Línea 43...
43
    When I click on "Create new account" "link"
43
    When I click on "Create new account" "link"
44
    Then the field "I understand and agree" matches value "0"
44
    Then the field "I understand and agree" matches value "0"
45
    And I set the following fields to these values:
45
    And I set the following fields to these values:
46
      | Username      | user1                 |
46
      | Username      | user1                 |
47
      | Password      | user1                 |
47
      | Password      | user1                 |
48
      | Email address | user1@address.invalid |
48
      | Email address | user1@example.com     |
49
      | Email (again) | user1@address.invalid |
49
      | Email (again) | user1@example.com     |
50
      | First name    | User1                 |
50
      | First name    | User1                 |
51
      | Last name     | L1                    |
51
      | Last name     | L1                    |
52
      | I understand and agree | 1            |
52
      | I understand and agree | 1            |
53
    And I press "Create my new account"
53
    And I press "Create my new account"
54
    And I should see "Confirm your account"
54
    And I should see "Confirm your account"
55
    And I should see "An email should have been sent to your address at user1@address.invalid"
55
    And I should see "An email should have been sent to your address at user1@example.com"
56
    And I confirm email for "user1"
56
    And I confirm email for "user1"
57
    And I should see "Thanks, User1 L1"
57
    And I should see "Thanks, User1 L1"
58
    And I should see "Your registration has been confirmed"
58
    And I should see "Your registration has been confirmed"
59
    And I open my profile in edit mode
59
    And I open my profile in edit mode
60
    And the field "First name" matches value "User1"
60
    And the field "First name" matches value "User1"
Línea 65... Línea 65...
65
    And the field "First name" matches value "User1"
65
    And the field "First name" matches value "User1"
Línea 66... Línea 66...
66
 
66
 
67
  Scenario Outline: Email validation during email registration
67
  Scenario Outline: Email validation during email registration
68
    Given the following config values are set as admin:
68
    Given the following config values are set as admin:
69
      | allowaccountssameemail | <allowsameemail> |
69
      | allowaccountssameemail | <allowsameemail> |
70
      | registerauth           | email              |
70
      | registerauth           | email            |
71
      | passwordpolicy         | 0                  |
71
      | passwordpolicy         | 0                |
72
    And the following "users" exist:
72
    And the following "users" exist:
73
      | username | firstname | lastname | email          |
73
      | username | firstname | lastname | email          |
74
      | s1       | John      | Doe      | s1@example.com |
74
      | s1       | John      | Doe      | s1@example.com |
75
    And I am on site homepage
75
    And I am on site homepage