Skip to content

Commit

Permalink
Remove output check before final rendering of test model
Browse files Browse the repository at this point in the history
Fixes issue #7721

Signed-off-by: Brooke Hamilton <[email protected]>
  • Loading branch information
brooke-hamilton committed Jul 1, 2024
1 parent 13d50f7 commit 9cc7464
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cli/prompt/text/text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ func Test_E2E(t *testing.T) {
tm.Type("abcd")
tm.Send(tea.KeyMsg{Type: tea.KeyEnter})
tm.WaitFinished(t, teatest.WithFinalTimeout(waitTimeout))
bts, err := io.ReadAll(tm.FinalOutput(t))
require.NoError(t, err)

output = normalizeOutput(bts)
require.Empty(t, strings.TrimSpace(output)) // Output sometimes contains a single space.
require.True(t, tm.FinalModel(t).(Model).valueEntered)
require.False(t, tm.FinalModel(t).(Model).Quitting)
require.Equal(t, "abcd", tm.FinalModel(t).(Model).GetValue())
Expand Down

0 comments on commit 9cc7464

Please sign in to comment.