You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@restartBrowser # << Required otherwise the BrowserKit client will have a history and auto-populate the referer header. We are testing for non-standard browser behaviour or hacks
36
+
@restartBrowser # << Required otherwise the BrowserKit client will have a history and auto-populate the referer header. We are testing for non-standard browser behaviour or hacks
37
37
Scenario Outline: Test invalid referer and missing referer and origin headers
38
38
Given there is a "new_email" form
39
39
And I add "<headerName>" header equal to "<headerValue>"
@@ -73,6 +73,7 @@ Feature: Register process via a form
73
73
Then the response status code should be 422
74
74
And the JSON node "formView.children[0].vars.errors[0]" should be equal to "Your new email address should be different."
75
75
And the JSON should be valid according to the schema file "form.schema.json"
76
+
And I should not receive any emails
76
77
77
78
@loginUser
78
79
Scenario: I get an invalid response if I try to change my email address to one that already exists
@@ -90,6 +91,7 @@ Feature: Register process via a form
90
91
Then the response status code should be 422
91
92
And the JSON node "formView.children[0].vars.errors[0]" should be equal to "Someone else is already registered with that email address."
92
93
And the JSON should be valid according to the schema file "form.schema.json"
94
+
And I should not receive any emails
93
95
94
96
@loginSuperAdmin
95
97
Scenario: I can authenticate that I am not able to change my email address to a blank string
@@ -106,6 +108,7 @@ Feature: Register process via a form
106
108
And the JSON node "violations[0].propertyPath" should be equal to "newEmailAddress"
107
109
And the JSON node "violations[0].message" should be equal to "This value should not be blank."
108
110
And the JSON should be valid according to the schema file "validation_errors_object.schema.json"
111
+
And I should not receive any emails
109
112
110
113
@loginSuperAdmin
111
114
Scenario: I can authenticate that I am not able to change my email address to a blank string
@@ -159,13 +162,14 @@ Feature: Register process via a form
159
162
And I should not receive any emails
160
163
161
164
Scenario: I can verify my new email address
162
-
Given there is a user with the username "my_username" password "password" and role "ROLE_USER"
165
+
Given there is a user with the username "my_username" password "password" and role "ROLE_USER" and the email address "old@email.com"
163
166
And the user has a new email address "new@email.com" and confirmation token abc123
164
167
And I add "referer" header equal to "http://www.website.com"
165
168
When I send a "GET" request to "/confirm-email/my_username/new@email.com/abc123"
166
169
Then the response status code should be 200
167
170
And the new email address should be "new@email.com" for username "my_username"
168
-
And I should get a "verify_email" email sent to the email address "new@email.com"
171
+
And the user "my_username" should have a verified email address
172
+
And I should not receive any emails
169
173
170
174
Scenario: Email verification reset if another user now has confirmed email same as the one this user is trying to confirm
171
175
Given there is a user with the username "new@email.com" password "password" and role "ROLE_USER" and the email address "new@email.com"
0 commit comments