diff --git a/test/regression/api/v2/admin/authentication_spec.js b/test/regression/api/v2/admin/authentication_spec.js index 2d6c15c4f9..afa8719b6e 100644 --- a/test/regression/api/v2/admin/authentication_spec.js +++ b/test/regression/api/v2/admin/authentication_spec.js @@ -413,7 +413,7 @@ describe('Authentication API v2', function () { .then((res) => { should.exist(res.body.errors); res.body.errors[0].type.should.eql('UnauthorizedError'); - res.body.errors[0].message.should.eql('Invalid token structure'); + res.body.errors[0].message.should.eql('Cannot reset password.'); }); }); diff --git a/test/regression/api/v3/admin/authentication_spec.js b/test/regression/api/v3/admin/authentication_spec.js index 7a7c025dc7..9b847f9ca2 100644 --- a/test/regression/api/v3/admin/authentication_spec.js +++ b/test/regression/api/v3/admin/authentication_spec.js @@ -289,7 +289,7 @@ describe('Authentication API v3', function () { .then((res) => { should.exist(res.body.errors); res.body.errors[0].type.should.eql('UnauthorizedError'); - res.body.errors[0].message.should.eql('Invalid token structure'); + res.body.errors[0].message.should.eql('Cannot reset password.'); }); });