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

Spec: Add spec that demonstrates the undesired filtering behavior

Aaron Contreras3f458e49003a
diff --git a/spec/features/work_packages/share/filter_spec.rb b/spec/features/work_packages/share/filter_spec.rb
index f0e78613718..d889d6dcfae 100644
--- a/spec/features/work_packages/share/filter_spec.rb
+++ b/spec/features/work_packages/share/filter_spec.rb
@@ -272,5 +272,22 @@ RSpec.describe 'Work package sharing',
share_modal.expect_select_all_untoggled
end
end
+
+ context 'when filtering for a specific role' do
+ before do
+ share_modal.expect_open
+ share_modal.filter('role', "View")
+ end
+
+ context 'and a share from the filtered list is subsequently updated' do
+ before do
+ share_modal.change_role(project_user, "Comment")
+ end
+
+ it 'removes the updated share from the list' do
+ share_modal.expect_not_shared_with(project_user)
+ end
+ end
+ end
end
end