tests: tui_spec: fix waiting for terminal to be ready (#11232)

The screen would have '-- TERMINAL --' already initially.

Related to flakiness of "TUI FocusGained/FocusLost in terminal-mode".
This commit is contained in:
Daniel Hahler 2019-10-15 20:50:51 +02:00 committed by GitHub
parent 2e14dffbb4
commit 932edf4f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -924,7 +924,15 @@ describe('TUI FocusGained/FocusLost', function()
feed_data(':terminal\n')
-- Wait for terminal to be ready.
screen:expect{any='-- TERMINAL --'}
screen:expect{grid=[[
{1:r}eady $ |
[Process exited 0] |
|
|
|
:terminal |
{3:-- TERMINAL --} |
]]}
feed_data('\027[I')
screen:expect{grid=[[