OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Adapt password change spec
Oliver Güntherc167eb5ccd9c
diff --git a/app/controllers/concerns/accounts/user_password_change.rb b/app/controllers/concerns/accounts/user_password_change.rbindex c4b602d7c95..e222950ef56 100644--- a/app/controllers/concerns/accounts/user_password_change.rb+++ b/app/controllers/concerns/accounts/user_password_change.rb@@ -65,7 +65,7 @@ module Accounts::UserPasswordChangeflash[:error] = message unless message.nil?@user = user@username = user.login- render "my/password", locals: { show_user_name: }+ render "my/password", locals: { show_user_name: }, status: :unprocessable_entityend##diff --git a/spec/features/users/password_change_spec.rb b/spec/features/users/password_change_spec.rbindex ecc1daa41ad..e20bf315bb9 100644--- a/spec/features/users/password_change_spec.rb+++ b/spec/features/users/password_change_spec.rb@@ -90,6 +90,7 @@ RSpec.describe "random password generation", :js, :with_cuprite doexpect(Sessions::UserSession.for_user(user.id).count).to be >= 1click_on "Save"+ wait_for_network_idleexpect_flash(type: :info, message: I18n.t(:notice_account_password_updated))# The old session is removeddiff --git a/spec/support/authentication_helpers.rb b/spec/support/authentication_helpers.rbindex 46350446246..57ef1c63edd 100644--- a/spec/support/authentication_helpers.rb+++ b/spec/support/authentication_helpers.rb@@ -64,7 +64,9 @@ module AuthenticationHelpersnum_days: I18n.t("datetime.distance_in_words.x_days", count: Setting.autologin))check autologin_labelend+click_button I18n.t(:button_login)+ wait_for_network_idleendend