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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add spec to cover all three possible filtering states
Aaron Contreras510a455e26b6
diff --git a/spec/features/work_packages/share/filter_spec.rb b/spec/features/work_packages/share/filter_spec.rbindex d889d6dcfae..4dadacce50c 100644--- a/spec/features/work_packages/share/filter_spec.rb+++ b/spec/features/work_packages/share/filter_spec.rb@@ -273,6 +273,35 @@ RSpec.describe 'Work package sharing',endend+ it 'only displays shares that match the current set of applied filters' do+ share_modal.expect_open++ share_modal.toggle_select_all+ share_modal.bulk_update("View")+ share_modal.toggle_select_all++ share_modal.filter('role', "View")++ share_modal.expect_shared_with(project_user)+ share_modal.expect_shared_with(project_user2)+ share_modal.expect_shared_with(inherited_project_user)+ share_modal.expect_shared_with(non_project_user)+ share_modal.expect_shared_with(shared_project_group)+ share_modal.expect_shared_with(shared_non_project_group)++ share_modal.change_role(project_user, "Comment")+ share_modal.filter('role', "Comment")+ share_modal.expect_shared_with(project_user, "Comment")+ share_modal.expect_not_shared_with(project_user2)+ share_modal.expect_not_shared_with(inherited_project_user)+ share_modal.expect_not_shared_with(non_project_user)+ share_modal.expect_not_shared_with(shared_project_group)+ share_modal.expect_not_shared_with(shared_non_project_group)++ share_modal.filter('role', "Edit")+ share_modal.expect_empty_search_blankslate+ end+context 'when filtering for a specific role' dobefore doshare_modal.expect_open