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

tests[Op#55966]: split test assertions

Kabiru Mwenjaa79a5cdf9ab7
diff --git a/modules/storages/spec/features/storages/admin/project_storages_spec.rb b/modules/storages/spec/features/storages/admin/project_storages_spec.rb
index 55d6edfd8c8..7e029fe0c5d 100644
--- a/modules/storages/spec/features/storages/admin/project_storages_spec.rb
+++ b/modules/storages/spec/features/storages/admin/project_storages_spec.rb
@@ -106,8 +106,8 @@ RSpec.describe "Admin lists project mappings for a storage",
aggregate_failures "shows the correct project mappings including archived projects and their folder modes" do
within "#project-table" do
- expect(page).to have_text("#{project.name} Automatically managed")
- expect(page).to have_text("#{archived_project.name} No specific folder")
+ expect(page).to have_text(project.name.to_s).and have_text("Automatically managed")
+ expect(page).to have_text("ARCHIVED #{archived_project.name}").and have_text("No specific folder")
end
end
end