@@ -191,7 +191,7 @@ func TestVerification(t *testing.T) {
191
191
var check = func (t * testing.T , actual string ) {
192
192
assert .EqualValues (t , string (node .CodeGroup ), gjson .Get (actual , "active" ).String (), "%s" , actual )
193
193
assert .EqualValues (t , email , gjson .Get (actual , "ui.nodes.#(attributes.name==email).attributes.value" ).String (), "%s" , actual )
194
- assertx .EqualAsJSON (t , text .NewVerificationEmailSent (), json .RawMessage (gjson .Get (actual , "ui.messages.0" ).Raw ))
194
+ assertx .EqualAsJSON (t , text .NewVerificationEmailWithCodeSent (), json .RawMessage (gjson .Get (actual , "ui.messages.0" ).Raw ))
195
195
196
196
message := testhelpers .CourierExpectMessage (t , reg , email , "Someone tried to verify this email address" )
197
197
assert .Contains (t , message .Body , "If this was you, check if you signed up using a different address." )
@@ -292,7 +292,7 @@ func TestVerification(t *testing.T) {
292
292
var check = func (t * testing.T , actual string ) {
293
293
assert .EqualValues (t , string (node .CodeGroup ), gjson .Get (actual , "active" ).String (), "%s" , actual )
294
294
assert .EqualValues (t , verificationEmail , gjson .Get (actual , "ui.nodes.#(attributes.name==email).attributes.value" ).String (), "%s" , actual )
295
- assertx .EqualAsJSON (t , text .NewVerificationEmailSent (), json .RawMessage (gjson .Get (actual , "ui.messages.0" ).Raw ))
295
+ assertx .EqualAsJSON (t , text .NewVerificationEmailWithCodeSent (), json .RawMessage (gjson .Get (actual , "ui.messages.0" ).Raw ))
296
296
297
297
message := testhelpers .CourierExpectMessage (t , reg , verificationEmail , "Please verify your email address" )
298
298
assert .Contains (t , message .Body , "please verify your account by entering the following code" )
@@ -405,7 +405,7 @@ func TestVerification(t *testing.T) {
405
405
require .NoError (t , err )
406
406
body := ioutilx .MustReadAll (res .Body )
407
407
408
- assert .Equal (t , returnToURL , gjson .GetBytes (body , "ui.nodes.#(attributes.id==go-back ).attributes.href" ).String ())
408
+ assert .Equal (t , returnToURL , gjson .GetBytes (body , "ui.nodes.#(attributes.id==continue ).attributes.href" ).String ())
409
409
})
410
410
411
411
t .Run ("case=should respond with replaced error if successful code is submitted again via api" , func (t * testing.T ) {
0 commit comments