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 flaky user creation test

Ivan Kuchin710f3ea85599
diff --git a/spec/features/users/create_spec.rb b/spec/features/users/create_spec.rb
index 39cae05b336..a9b31d8e09a 100644
--- a/spec/features/users/create_spec.rb
+++ b/spec/features/users/create_spec.rb
@@ -151,10 +151,11 @@ RSpec.describe "create users" do
.and_return({ dn: "cn=bob,ou=users,dc=example,dc=com" })
fill_in "password", with: "dummy" # accepted by DummyAuthSource
-
click_button "Sign in", type: "submit"
+ wait_for_network_idle
- expect(page).to have_text "OpenProject"
+ # landed on the 'my page'
+ expect(page).to have_text "Welcome to OpenProject, bobfirst boblast"
expect(page).to have_current_path "/", ignore_query: true
user_menu.expect_user_shown "bobfirst boblast"
end