perms_json << {value: link_name, text: link_desc}
end
perms_json = perms_json.to_json
+ choose_filters = {
+ "groups" => [["group_class", "=", nil]],
+ }
+ choose_filters.default = []
owner_icon = fa_icon_class_for_uuid(@object.owner_uuid)
if owner_icon == "fa-users"
owner_icon = "fa-folder"
preview_pane: false,
multiple: true,
limit: 10000,
+ filters: choose_filters[share_class].to_json,
action_method: 'post',
action_href: share_with_project_path,
action_name: 'Add',
add_share_and_check("groups", new_name)
modify_share_and_check(new_name)
end
+
+ test "'share with group' listing does not offer projects" do
+ show_project_using("active")
+ click_on "Sharing"
+ click_on "Share with groups"
+ good_uuid = api_fixture("groups")["private"]["uuid"]
+ assert(page.has_selector?(".selectable[data-object-uuid=\"#{good_uuid}\"]"),
+ "'share with groups' listing missing owned user group")
+ bad_uuid = api_fixture("groups")["asubproject"]["uuid"]
+ assert(page.has_no_selector?(".selectable[data-object-uuid=\"#{bad_uuid}\"]"),
+ "'share with groups' listing includes project")
+ end
end