zed/crates/collab/tests/integration
Joseph T. Lyons 64315583c8
Add the ability to reorder favorited collab channels (#52649)
Currently, if you try to re-order a favorite, the favorite will not
reorder, but the actual channels will.


https://github.com/user-attachments/assets/1fbab9ea-4ff4-473f-8de3-d3b60696c5a1

Additionally, a new bug seems to be that if you reorder channels, focus
jumps to a favorite:


https://github.com/user-attachments/assets/fa776ad2-8648-4e68-a253-a98f57bd4951

This PR allows for re-ordering of favorites independent of the actual
channels, and fixes the focusing bug


https://github.com/user-attachments/assets/977e575a-055c-4f26-8183-2744ff7f8f56

I didn't feel comfortable adding just the functionality/fixes alone, so
I added a function to represent the state of the collab panel as a list
of strings, like how testing around the project panel is, and wrote a
few tests to ensure the behavior was pinned down.

The tests cover testing:

- Favoriting/unfavoriting
- Reordering favorites without impacting order of channels in the
channels list
- Reordering channels in the channels list without impacting order of
favorites

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- Added the ability to reorder favorited collab channels.
2026-03-30 13:07:13 +00:00
..
db_tests collab: Remove leftover impersonation code (#49314) 2026-02-17 00:27:04 +00:00
agent_sharing_tests.rs
channel_buffer_tests.rs Fix race condition in channel notes rejoin (#50034) 2026-02-25 05:48:59 +00:00
channel_guest_tests.rs Re-add MultiWorkspace (#48800) 2026-02-12 01:06:23 +00:00
channel_tests.rs
collab_panel_tests.rs Add the ability to reorder favorited collab channels (#52649) 2026-03-30 13:07:13 +00:00
collab_tests.rs Add the ability to reorder favorited collab channels (#52649) 2026-03-30 13:07:13 +00:00
db_tests.rs Reapply "Try namespace mac runners (#47675)" (#47721) (#47727) 2026-01-26 22:02:52 -07:00
editor_tests.rs Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
following_tests.rs Fix a bug where closing the workspace could skip the dirty check for other workspaces (#50105) 2026-02-25 17:33:05 +00:00
git_tests.rs multiworkspace: Don't destroy workspace when git worktree is detached head (#51977) 2026-03-19 17:18:08 -07:00
integration_tests.rs Add screen-sharing support on Wayland/Linux (#51957) 2026-03-19 22:10:42 +01:00
notification_tests.rs
random_channel_buffer_tests.rs
random_project_collaboration_tests.rs
randomized_test_helpers.rs theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
remote_editing_collaboration_tests.rs Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
test_server.rs theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00