Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 68... Línea 68...
68
    And I click on "Create new account" "link"
68
    And I click on "Create new account" "link"
69
    # Compulsory policies displayed on own page are shown first and must be agreed.
69
    # Compulsory policies displayed on own page are shown first and must be agreed.
70
    And I should see "OwnPageCompulsory1" in the "region-main" "region"
70
    And I should see "OwnPageCompulsory1" in the "region-main" "region"
71
    And I should see "short text4" in the "region-main" "region"
71
    And I should see "short text4" in the "region-main" "region"
72
    And I should see "full text4" in the "region-main" "region"
72
    And I should see "full text4" in the "region-main" "region"
73
    And I press "I agree to the OwnPageCompulsory1"
73
    And I press "I agree to the OwnPageCompulsory1."
74
    # Compulsory policies displayed on the consent page are shown next and must be agreed.
74
    # Compulsory policies displayed on the consent page are shown next and must be agreed.
75
    And I should see "ConsentPageCompulsory1"
75
    And I should see "ConsentPageCompulsory1"
76
    And I should see "short text3" in the "region-main" "region"
76
    And I should see "short text3" in the "region-main" "region"
77
    And I should see "full text3" in the "region-main" "region"
77
    And I should see "full text3" in the "region-main" "region"
78
    And I press "Next"
78
    And I press "Next"
79
    And I should see "Please agree to the following policies"
79
    And I should see "Please agree to the following policies:"
80
    And I set the field "I agree to the ConsentPageCompulsory1" to "1"
80
    And I set the field "I agree to the ConsentPageCompulsory1." to "1"
81
    And I press "Next"
81
    And I press "Next"
82
    # The signup form can be submitted and a new account created.
82
    # The signup form can be submitted and a new account created.
83
    And I set the following fields to these values:
83
    And I set the following fields to these values:
84
      | Username      | user3               |
84
      | Username      | user3               |
85
      | Password      | user3                 |
85
      | Password      | user3                 |
86
      | Email address | user3@address.invalid |
86
      | Email address | user3@example.com    |
87
      | Email (again) | user3@address.invalid |
87
      | Email (again) | user3@example.com   |
88
      | First name    | User3                 |
88
      | First name    | User3                 |
89
      | Last name       | L3                    |
89
      | Last name       | L3                    |
90
    And I press "Create my new account"
90
    And I press "Create my new account"
91
    And I should see "Confirm your account"
91
    And I should see "Confirm your account"
92
    And I should see "An email should have been sent to your address at user3@address.invalid"
92
    And I should see "An email should have been sent to your address at user3@example.com"
93
    And I confirm email for "user3"
93
    And I confirm email for "user3"
94
    And I should see "Thanks, User3 L3"
94
    And I should see "Thanks, User3 L3"
95
    And I should see "Your registration has been confirmed"
95
    And I should see "Your registration has been confirmed"
96
    When I press "Continue"
96
    When I press "Continue"
97
    # After confirming the new account, the user is logged in and asked to accept or decline the optional policies.
97
    # After confirming the new account, the user is logged in and asked to accept or decline the optional policies.
98
    # First come policies displayed on their own page.
98
    # First come policies displayed on their own page.
99
    Then I should see "OwnPageOptional1"
99
    Then I should see "OwnPageOptional1"
100
    And I should see "short text5" in the "region-main" "region"
100
    And I should see "short text5" in the "region-main" "region"
101
    And I should see "full text5" in the "region-main" "region"
101
    And I should see "full text5" in the "region-main" "region"
102
    And I press "No thanks, I decline OwnPageOptional1"
102
    And I press "I don't agree to the OwnPageOptional1"
103
    # Then come policies displayed on the consent page.
103
    # Then come policies displayed on the consent page.
104
    And I should see "ConsentPageOptional1" in the "region-main" "region"
104
    And I should see "ConsentPageOptional1" in the "region-main" "region"
105
    And I should see "short text1" in the "region-main" "region"
105
    And I should see "short text1" in the "region-main" "region"
106
    And I should see "full text1" in the "region-main" "region"
106
    And I should see "full text1" in the "region-main" "region"
107
    And I press "Next"
107
    And I press "Next"
108
    And I should see "ConsentPageOptional2" in the "region-main" "region"
108
    And I should see "ConsentPageOptional2" in the "region-main" "region"
109
    And I should see "short text2" in the "region-main" "region"
109
    And I should see "short text2" in the "region-main" "region"
110
    And I should see "full text2" in the "region-main" "region"
110
    And I should see "full text2" in the "region-main" "region"
111
    And I press "Next"
111
    And I press "Next"
112
    And I should see "Please agree to the following policies"
112
    And I should see "Please agree to the following policies:"
113
    And I set the field "I agree to the ConsentPageOptional1" to "1"
113
    And I set the field "I agree to the ConsentPageOptional1." to "1"
114
    And I set the field "No thanks, I decline ConsentPageOptional2" to "0"
114
    And I set the field "I don't agree to the ConsentPageOptional2" to "0"
115
    And I press "Next"
115
    And I press "Next"
116
    # Accepted and declined policies are shown in the profile.
116
    # Accepted and declined policies are shown in the profile.
117
    And I follow "Profile" in the user menu
117
    And I follow "Profile" in the user menu
118
    And I follow "Policies and agreements"
118
    And I follow "Policies and agreements"
119
    And "Accepted" "text" should exist in the "ConsentPageCompulsory1" "table_row"
119
    And "Accepted" "text" should exist in the "ConsentPageCompulsory1" "table_row"
Línea 130... Línea 130...
130
    When I log in as "user1"
130
    When I log in as "user1"
131
    # First come policies displayed on their own page.
131
    # First come policies displayed on their own page.
132
    Then I should see "OwnPageOptional1"
132
    Then I should see "OwnPageOptional1"
133
    And I should see "short text5" in the "region-main" "region"
133
    And I should see "short text5" in the "region-main" "region"
134
    And I should see "full text5" in the "region-main" "region"
134
    And I should see "full text5" in the "region-main" "region"
135
    And I press "I agree to the OwnPageOptional1"
135
    And I press "I agree to the OwnPageOptional1."
136
    # Then come policies displayed on the consent page.
136
    # Then come policies displayed on the consent page.
137
    And I should see "ConsentPageOptional1" in the "region-main" "region"
137
    And I should see "ConsentPageOptional1" in the "region-main" "region"
138
    And I should see "short text1" in the "region-main" "region"
138
    And I should see "short text1" in the "region-main" "region"
139
    And I should see "full text1" in the "region-main" "region"
139
    And I should see "full text1" in the "region-main" "region"
140
    And I press "Next"
140
    And I press "Next"
141
    And I should see "Please agree to the following policies"
141
    And I should see "Please agree to the following policies:"
142
    And I set the field "No thanks, I decline ConsentPageOptional1" to "0"
142
    And I set the field "I don't agree to the ConsentPageOptional1" to "0"
143
    And I press "Next"
143
    And I press "Next"
144
    # Accepted and declined policies are shown in the profile.
144
    # Accepted and declined policies are shown in the profile.
145
    And I follow "Profile" in the user menu
145
    And I follow "Profile" in the user menu
146
    And I follow "Policies and agreements"
146
    And I follow "Policies and agreements"
147
    And "Accepted" "text" should exist in the "OwnPageOptional1" "table_row"
147
    And "Accepted" "text" should exist in the "OwnPageOptional1" "table_row"
Línea 150... Línea 150...
150
  Scenario: Users can withdraw an accepted optional policy and re-accept it again (js off)
150
  Scenario: Users can withdraw an accepted optional policy and re-accept it again (js off)
151
    Given the following policies exist:
151
    Given the following policies exist:
152
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
152
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
153
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
153
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
154
    And I log in as "user1"
154
    And I log in as "user1"
155
    And I press "I agree to the OwnPageOptional1"
155
    And I press "I agree to the OwnPageOptional1."
156
    And I follow "Profile" in the user menu
156
    And I follow "Profile" in the user menu
157
    And I follow "Policies and agreements"
157
    And I follow "Policies and agreements"
158
    And "Accepted" "text" should exist in the "OwnPageOptional1" "table_row"
158
    And "Accepted" "text" should exist in the "OwnPageOptional1" "table_row"
159
    And "Withdraw" "link" should exist in the "OwnPageOptional1" "table_row"
159
    And "Withdraw" "link" should exist in the "OwnPageOptional1" "table_row"
160
    When I click on "Withdraw acceptance of OwnPageOptional1" "link" in the "OwnPageOptional1" "table_row"
160
    When I click on "Withdraw acceptance of OwnPageOptional1" "link" in the "OwnPageOptional1" "table_row"
Línea 175... Línea 175...
175
  Scenario: Users can withdraw an accepted optional policy and re-accept it again (js on)
175
  Scenario: Users can withdraw an accepted optional policy and re-accept it again (js on)
176
    Given the following policies exist:
176
    Given the following policies exist:
177
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
177
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
178
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
178
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
179
    And I log in as "user1"
179
    And I log in as "user1"
180
    And I press "I agree to the OwnPageOptional1"
180
    And I press "I agree to the OwnPageOptional1."
181
    And I follow "Profile" in the user menu
181
    And I follow "Profile" in the user menu
182
    And I follow "Policies and agreements"
182
    And I follow "Policies and agreements"
183
    And "Accepted" "text" should exist in the "OwnPageOptional1" "table_row"
183
    And "Accepted" "text" should exist in the "OwnPageOptional1" "table_row"
184
    And "Withdraw" "link" should exist in the "OwnPageOptional1" "table_row"
184
    And "Withdraw" "link" should exist in the "OwnPageOptional1" "table_row"
185
    When I click on "Withdraw acceptance of OwnPageOptional1" "link" in the "OwnPageOptional1" "table_row"
185
    When I click on "Withdraw acceptance of OwnPageOptional1" "link" in the "OwnPageOptional1" "table_row"
Línea 200... Línea 200...
200
    Given the following policies exist:
200
    Given the following policies exist:
201
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
201
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
202
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
202
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
203
      | OwnPageOptional2       | full text2 | short text2 | 1              | 1         |
203
      | OwnPageOptional2       | full text2 | short text2 | 1              | 1         |
204
    And I log in as "user1"
204
    And I log in as "user1"
205
    And I press "I agree to the OwnPageOptional1"
205
    And I press "I agree to the OwnPageOptional1."
206
    And I press "No thanks, I decline OwnPageOptional2"
206
    And I press "I don't agree to the OwnPageOptional2"
207
    And I log out
207
    And I log out
208
    And I log in as "manager"
208
    And I log in as "manager"
209
    And I press "I agree to the OwnPageOptional1"
209
    And I press "I agree to the OwnPageOptional1."
210
    And I press "I agree to the OwnPageOptional2"
210
    And I press "I agree to the OwnPageOptional2."
211
    When I navigate to "Users > Privacy and policies > User agreements" in site administration
211
    When I navigate to "Users > Privacy and policies > User agreements" in site administration
212
    # User One has accepted just some policies.
212
    # User One has accepted just some policies.
213
    Then "Partially accepted" "text" should exist in the "User One" "table_row"
213
    Then "Partially accepted" "text" should exist in the "User One" "table_row"
214
    And "Details" "link" should exist in the "User One" "table_row"
214
    And "Details" "link" should exist in the "User One" "table_row"
215
    # User Two did not have a chance to respond to the new policies yet.
215
    # User Two did not have a chance to respond to the new policies yet.
Línea 226... Línea 226...
226
    Given the following policies exist:
226
    Given the following policies exist:
227
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
227
      | Name                   | Content    | Summary     | Agreementstyle | Optional  |
228
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
228
      | OwnPageOptional1       | full text1 | short text1 | 1              | 1         |
229
      | OwnPageOptional2       | full text2 | short text2 | 1              | 1         |
229
      | OwnPageOptional2       | full text2 | short text2 | 1              | 1         |
230
    And I log in as "user1"
230
    And I log in as "user1"
231
    And I press "I agree to the OwnPageOptional1"
231
    And I press "I agree to the OwnPageOptional1."
232
    And I press "No thanks, I decline OwnPageOptional2"
232
    And I press "I don't agree to the OwnPageOptional2"
233
    And I log out
233
    And I log out
234
    And I log in as "admin"
234
    And I log in as "admin"
235
    When I navigate to "Users > Privacy and policies > User agreements" in site administration
235
    When I navigate to "Users > Privacy and policies > User agreements" in site administration
236
    # User One has accepted just some policies.
236
    # User One has accepted just some policies.
237
    Then "Partially accepted" "text" should exist in the "User One" "table_row"
237
    Then "Partially accepted" "text" should exist in the "User One" "table_row"