diff --git a/services/web/test/acceptance/coffee/helpers/User.coffee b/services/web/test/acceptance/coffee/helpers/User.coffee index b8740f709c..691a214c8b 100644 --- a/services/web/test/acceptance/coffee/helpers/User.coffee +++ b/services/web/test/acceptance/coffee/helpers/User.coffee @@ -80,6 +80,9 @@ class User update["features.#{key}"] = value UserModel.update { _id: @id }, update, callback + setOverleafId: (overleaf_id, callback = (error) ->) -> + UserModel.update { _id: @id }, { 'overleaf.id': overleaf_id }, callback + logout: (callback = (error) ->) -> @getCsrfToken (error) => return callback(error) if error?