PR #38704 added config parameters that can control what files do or do not go in the trashbin:
trashbin_skip_directories
trashbin_skip_extensions
trashbin_skip_size_threshold
Add some acceptance test scenarios to cover each of these, and a combination of all 3. IMO it can all be done with API tests.