mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
Make completion unit test on editor more resilient
This commit is contained in:
parent
30e4ea1a4c
commit
985d216e4b
1 changed files with 7 additions and 3 deletions
|
@ -7791,7 +7791,9 @@ mod tests {
|
|||
],
|
||||
)
|
||||
.await;
|
||||
editor.next_notification(&cx).await;
|
||||
editor
|
||||
.condition(&cx, |editor, _| editor.context_menu_visible())
|
||||
.await;
|
||||
|
||||
let apply_additional_edits = editor.update(&mut cx, |editor, cx| {
|
||||
editor.move_down(&MoveDown, cx);
|
||||
|
@ -7855,7 +7857,7 @@ mod tests {
|
|||
)
|
||||
.await;
|
||||
editor
|
||||
.condition(&cx, |editor, _| editor.context_menu.is_some())
|
||||
.condition(&cx, |editor, _| editor.context_menu_visible())
|
||||
.await;
|
||||
|
||||
editor.update(&mut cx, |editor, cx| {
|
||||
|
@ -7873,7 +7875,9 @@ mod tests {
|
|||
],
|
||||
)
|
||||
.await;
|
||||
editor.next_notification(&cx).await;
|
||||
editor
|
||||
.condition(&cx, |editor, _| editor.context_menu_visible())
|
||||
.await;
|
||||
|
||||
let apply_additional_edits = editor.update(&mut cx, |editor, cx| {
|
||||
let apply_additional_edits = editor
|
||||
|
|
Loading…
Reference in a new issue