From 25ac5bdb49c39c88940d58e4ab7ed77fd0b20762 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 2 Jun 2024 14:17:23 -0700 Subject: [PATCH] Fix the undo pexpect Add the missing expect_prompts to reflect where we send newlines. --- tests/pexpects/undo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/pexpects/undo.py b/tests/pexpects/undo.py index c3946ad72..369001f0a 100644 --- a/tests/pexpects/undo.py +++ b/tests/pexpects/undo.py @@ -13,6 +13,7 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = ( expect_prompt() sendline("set -g fish_autosuggestion_enabled 0") +expect_prompt() sendline("bind U,n,d,o undo; bind R,e,d,o redo") expect_prompt() @@ -23,9 +24,10 @@ send("Undo") expect_str("echo") send("Redo\r") -expect_str("echo word") +expect_prompt("echo word") sendline("bind x begin-undo-group 'commandline -i \"+ \"' 'commandline -i 3' end-undo-group") +expect_prompt() send("math 2 x\r") expect_prompt("5")