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

Address specs that are now correct

Oliver Günther0c56632c5e09
diff --git a/spec/features/notifications/notification_center/split_screen_spec.rb b/spec/features/notifications/notification_center/split_screen_spec.rb
index 1749a2e354d..36d846d0ca4 100644
--- a/spec/features/notifications/notification_center/split_screen_spec.rb
+++ b/spec/features/notifications/notification_center/split_screen_spec.rb
@@ -98,7 +98,7 @@ RSpec.describe "Split screen in the notification center", :js, :with_cuprite do
center.click_item notification
sleep 0.25 # Wait after the item has been clicked to not be interpreted as a double click
center.mark_notification_as_read notification
- global_html_title.expect_first_segment second_title
+ global_html_title.expect_first_segment "#{second_title} | Notifications"
# After making all notifications as read, html title should show the base route
center.mark_notification_as_read second_notification
diff --git a/spec/features/work_packages/navigation_spec.rb b/spec/features/work_packages/navigation_spec.rb
index 7e6240e7d7b..2676991e3d6 100644
--- a/spec/features/work_packages/navigation_spec.rb
+++ b/spec/features/work_packages/navigation_spec.rb
@@ -62,7 +62,7 @@ RSpec.describe "Work package navigation", :js, :selenium do
global_work_packages.visit!
global_work_packages.expect_work_package_listed(work_package)
- global_html_title.expect_first_segment "All open"
+ global_html_title.expect_first_segment "All open | Work Packages"
# open details pane for work package
@@ -70,14 +70,14 @@ RSpec.describe "Work package navigation", :js, :selenium do
split_work_package.expect_subject
split_work_package.expect_current_path
- global_html_title.expect_first_segment wp_title_segment
+ global_html_title.expect_first_segment "#{wp_title_segment} | Work Packages"
# Go to full screen by double click
full_work_package = global_work_packages.open_full_screen_by_doubleclick(work_package)
full_work_package.expect_subject
full_work_package.expect_current_path
- global_html_title.expect_first_segment wp_title_segment
+ global_html_title.expect_first_segment "#{wp_title_segment} | Work Packages"
# deep link work package details pane
@@ -97,17 +97,17 @@ RSpec.describe "Work package navigation", :js, :selenium do
project_work_packages.visit!
project_work_packages.expect_work_package_listed(work_package)
- project_html_title.expect_first_segment "All open"
+ project_html_title.expect_first_segment "All open | Work Packages"
# Visit query with project wp
project_work_packages.visit_query query
project_work_packages.expect_work_package_listed(work_package)
- project_html_title.expect_first_segment "My fancy query"
+ project_html_title.expect_first_segment "My fancy query | Work Packages"
# Go back to work packages without query
page.execute_script("window.history.back()")
project_work_packages.expect_work_package_listed(work_package)
- project_html_title.expect_first_segment "All open"
+ project_html_title.expect_first_segment "All open | Work Packages"
# open project work package details pane
@@ -115,19 +115,19 @@ RSpec.describe "Work package navigation", :js, :selenium do
split_project_work_package.expect_subject
split_project_work_package.expect_current_path
- project_html_title.expect_first_segment wp_title_segment
+ project_html_title.expect_first_segment "#{wp_title_segment} | Work Packages"
# open work package full screen by button
full_work_package = split_project_work_package.switch_to_fullscreen
full_work_package.expect_subject
expect(page).to have_current_path project_work_package_path(project, work_package, "activity")
- project_html_title.expect_first_segment wp_title_segment
+ project_html_title.expect_first_segment "#{wp_title_segment} | Work Packages"
# Switch tabs
full_work_package.switch_to_tab tab: :relations
expect(page).to have_current_path project_work_package_path(project, work_package, "relations")
- project_html_title.expect_first_segment wp_title_segment
+ project_html_title.expect_first_segment "#{wp_title_segment} | Work Packages"
# Back to split screen using the button
full_work_package.go_back