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

ulferts5473e2d2dd17
diff --git a/spec/features/admin/project_life_cycle_step_definitions_spec.rb b/spec/features/admin/project_life_cycle_step_definitions_spec.rb
index bac713e73ea..cc7a7677081 100644
--- a/spec/features/admin/project_life_cycle_step_definitions_spec.rb
+++ b/spec/features/admin/project_life_cycle_step_definitions_spec.rb
@@ -115,11 +115,15 @@ RSpec.describe "Projects life cycle settings", :js, with_flag: { stages_and_gate
definitions_page.select_color("Azure")
click_on "Create"
+ definitions_page.expect_and_dismiss_flash(message: "Successful creation.")
+
definitions_page.add
fill_in "Name", with: "Initiating"
definitions_page.select_color("Gold")
click_on "Create"
+ definitions_page.expect_and_dismiss_flash(message: "Successful creation.")
+
definitions_page.expect_listed(["Starting", "Processing", "Imagining", "Initiating"])
# moving
@@ -139,11 +143,13 @@ RSpec.describe "Projects life cycle settings", :js, with_flag: { stages_and_gate
wait_for_network_idle
definitions_page.expect_listed(["Initiating", "Starting", "Imagining", "Processing"])
- definitions_page.drag_and_drop_list(from: 0, to: 3,
- elements: "[data-test-selector=project-life-cycle-step-definition]",
- handler: ".DragHandle")
- wait_for_network_idle
- definitions_page.expect_listed(["Starting", "Imagining", "Processing", "Initiating"])
+ retry_block do
+ definitions_page.drag_and_drop_list(from: 0, to: 3,
+ elements: "[data-test-selector=project-life-cycle-step-definition]",
+ handler: ".DragHandle")
+ wait_for_network_idle
+ definitions_page.expect_listed(["Starting", "Imagining", "Processing", "Initiating"])
+ end
definitions_page.reload!
definitions_page.expect_listed(["Starting", "Imagining", "Processing", "Initiating"])