Skip to content

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

fix tests broken by 878fee2749

Christophe Bliardceea73048f99
diff --git a/spec/features/users/password_change_spec.rb b/spec/features/users/password_change_spec.rb
index 85b052a7da2..994e8b027cf 100644
--- a/spec/features/users/password_change_spec.rb
+++ b/spec/features/users/password_change_spec.rb
@@ -94,7 +94,7 @@ describe 'random password generation',
expect(::Sessions::UserSession.for_user(user.id).count).to be >= 1
click_on 'Save'
- expect(page).to have_selector('.flash.notice', text: I18n.t(:notice_account_password_updated))
+ expect(page).to have_selector('.flash.info', text: I18n.t(:notice_account_password_updated))
# The old session is removed
expect(::Sessions::UserSession.find_by(session_id: 'other')).to be_nil
diff --git a/spec/support/pages/my/password_page.rb b/spec/support/pages/my/password_page.rb
index 351adce2790..173061a8d25 100644
--- a/spec/support/pages/my/password_page.rb
+++ b/spec/support/pages/my/password_page.rb
@@ -56,7 +56,7 @@ module Pages
def expect_password_updated_message
expect(page)
- .to have_selector('.flash.notice', text: I18n.t(:notice_account_password_updated))
+ .to have_selector('.flash.info', text: I18n.t(:notice_account_password_updated))
end
private