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

attempt to stabilize flickering spec

ulferts4f9fee53876b
diff --git a/modules/two_factor_authentication/spec/features/shared_two_factor_examples.rb b/modules/two_factor_authentication/spec/features/shared_two_factor_examples.rb
index 3ef56d75a8a..4e9d97989b2 100644
--- a/modules/two_factor_authentication/spec/features/shared_two_factor_examples.rb
+++ b/modules/two_factor_authentication/spec/features/shared_two_factor_examples.rb
@@ -24,8 +24,8 @@ module SharedTwoFactorExamples
end
def expect_logged_in
- visit my_account_path
wait_for_network_idle
+ visit my_account_path
expect(page).to have_css(".form--field-container", text: user.login)
end
@@ -84,7 +84,7 @@ RSpec.shared_examples "create enforced sms device" do
expect_flash(type: :error, message: I18n.t("two_factor_authentication.devices.registration_failed_token_invalid"))
SeleniumHubWaiter.wait
- # Fill in wrong token
+ # Fill in correct token
fill_in "otp", with: sms_token
click_button I18n.t(:button_continue)