Fix testTui/ai test and add golden file for it

This commit is contained in:
David Dworken
2023-11-12 01:13:22 -08:00
parent e712d77f62
commit a8f47cf340
3 changed files with 34 additions and 5 deletions

View File

@ -236,9 +236,9 @@ func captureTerminalOutputComplex(t testing.TB, captureConfig TmuxCaptureConfig)
require.NotEmpty(t, captureConfig.complexCommands)
for _, cmd := range captureConfig.complexCommands {
if cmd.Keys != "" {
fullCommand += " tmux send -t foo -- '"
fullCommand += " tmux send -t foo -- "
fullCommand += cmd.Keys
fullCommand += "'\n"
fullCommand += "\n"
}
if cmd.ResizeX != 0 && cmd.ResizeY != 0 {
fullCommand += fmt.Sprintf(" tmux resize-window -t foo -x %d -y %d\n", cmd.ResizeX, cmd.ResizeY)