mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:59:53 +00:00
Adjust test to flush effects between splitting pane and following
Panes now emit an event when adding the first item, so we need to flush effects between splitting and following in order to avoid accidentally cancelling the follow.
This commit is contained in:
parent
a88b4eb3c5
commit
23cd948b5f
1 changed files with 6 additions and 0 deletions
|
@ -5856,6 +5856,9 @@ mod tests {
|
|||
.update(cx_a, |workspace, cx| {
|
||||
workspace.split_pane(workspace.active_pane().clone(), SplitDirection::Right, cx);
|
||||
assert_ne!(*workspace.active_pane(), pane_a1);
|
||||
});
|
||||
workspace_a
|
||||
.update(cx_a, |workspace, cx| {
|
||||
let leader_id = *project_a.read(cx).collaborators().keys().next().unwrap();
|
||||
workspace
|
||||
.toggle_follow(&workspace::ToggleFollow(leader_id), cx)
|
||||
|
@ -5867,6 +5870,9 @@ mod tests {
|
|||
.update(cx_b, |workspace, cx| {
|
||||
workspace.split_pane(workspace.active_pane().clone(), SplitDirection::Right, cx);
|
||||
assert_ne!(*workspace.active_pane(), pane_b1);
|
||||
});
|
||||
workspace_b
|
||||
.update(cx_b, |workspace, cx| {
|
||||
let leader_id = *project_b.read(cx).collaborators().keys().next().unwrap();
|
||||
workspace
|
||||
.toggle_follow(&workspace::ToggleFollow(leader_id), cx)
|
||||
|
|
Loading…
Reference in a new issue