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/stabilize board navigation specs

Aaron Contrerasf7f2ec865467
diff --git a/modules/boards/spec/features/board_navigation_spec.rb b/modules/boards/spec/features/board_navigation_spec.rb
index 68f0ebaf9b7..f6cbf815b46 100644
--- a/modules/boards/spec/features/board_navigation_spec.rb
+++ b/modules/boards/spec/features/board_navigation_spec.rb
@@ -129,6 +129,7 @@ RSpec.describe "Work Package boards spec",
# Add a new WP on the board
board_page = board_index.open_board board_view
+
board_page.expect_query "List 1", editable: true
board_page.add_card "List 1", "Task 1"
board_page.expect_toast message: I18n.t(:notice_successful_create)
@@ -138,10 +139,9 @@ RSpec.describe "Work Package boards spec",
# Open the details page with the info icon
card = board_page.card_for(wp)
split_view = card.open_details_view
- split_view.ensure_page_loaded
split_view.expect_subject
- split_view.switch_to_tab tab: "Relations"
- expect_angular_frontend_initialized
+ split_view.switch_to_tab tab: :relations
+ expect(page).to have_current_path /details\/#{wp.id}\/relations/
# Go to full view of WP
full_view = split_view.switch_to_fullscreen
@@ -160,6 +160,7 @@ RSpec.describe "Work Package boards spec",
# Add a new WP on the board
board_page = board_index.open_board board_view
+
board_page.expect_query "List 1", editable: true
board_page.add_card "List 1", "Task 1"
board_page.expect_toast message: I18n.t(:notice_successful_create)
@@ -169,9 +170,7 @@ RSpec.describe "Work Package boards spec",
# Open the details page with the info icon
card = board_page.card_for(wp)
split_view = card.open_details_view
- split_view.ensure_page_loaded
split_view.expect_subject
- expect_angular_frontend_initialized
page.driver.refresh