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

avoid test flickering by having more complex password

ulfertsa64c77c1be70
diff --git a/modules/two_factor_authentication/spec/features/password_change_spec.rb b/modules/two_factor_authentication/spec/features/password_change_spec.rb
index f54bc92ccb1..b7a0d0610bd 100644
--- a/modules/two_factor_authentication/spec/features/password_change_spec.rb
+++ b/modules/two_factor_authentication/spec/features/password_change_spec.rb
@@ -3,8 +3,8 @@ require_relative '../spec_helper'
describe 'Password change with OTP', with_2fa_ee: true, type: :feature,
with_config: { '2fa': { active_strategies: [:developer] } },
js: true do
- let(:user_password) { 'bob' * 4 }
- let(:new_user_password) { 'obb' * 4 }
+ let(:user_password) { 'boB&' * 4 }
+ let(:new_user_password) { '%obB' * 4 }
let(:user) do
FactoryBot.create(:user,
login: 'bob',
@@ -86,8 +86,6 @@ describe 'Password change with OTP', with_2fa_ee: true, type: :feature,
end
context 'when force password change is set' do
- let(:user_password) { 'bob' * 4 }
- let(:new_user_password) { 'obb' * 4 }
let(:user) do
FactoryBot.create(:user,
force_password_change: true,