Try to make the fish vi cursor test more stable

This commit is contained in:
pagedown 2022-03-04 23:46:39 +08:00
parent e990d233e5
commit 7c166e2194
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -202,7 +202,7 @@ def redrawn():
pty.write_to_child('\x04')
pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BEAM)
pty.send_cmd_to_child('_set_key vi')
pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BLOCK)
pty.wait_till(lambda: pty.screen_contents().count(right_prompt) == 3)
pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BEAM)
pty.write_to_child('\x1b')
pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BLOCK)