diff --git a/internal/tui/components/chat/editor/editor_test.go b/internal/tui/components/chat/editor/editor_test.go index 11db160ae08426a3c70e6035ff4921f811eab07d..9bf9f5b1ff3af97311685dbc7f3c8fc625a9e20c 100644 --- a/internal/tui/components/chat/editor/editor_test.go +++ b/internal/tui/components/chat/editor/editor_test.go @@ -200,7 +200,7 @@ func TestEditorAutoCompletion_OnNonImageFileFullPathInsertedFromQuery(t *testing assert.NotNil(t, openCompletionsMsg) require.True(t, testEditor.IsCompletionsOpen()) - testEditor.textarea.SetValue("/random.tx") + testEditor.textarea.SetValue("I am looking for a file called /random.tx") keyPressMsg = tea.KeyPressMsg{ Text: "t", @@ -223,7 +223,7 @@ func TestEditorAutoCompletion_OnNonImageFileFullPathInsertedFromQuery(t *testing t.Fatal("Expected noopEvent from cmds()") } - assert.Equal(t, "./root/project/random.txt", testEditor.textarea.Value()) + assert.Equal(t, "I am looking for a file called ./root/project/random.txt", testEditor.textarea.Value()) } func TestEditor_OnCompletionPathToImageEmitsAttachFileMessage(t *testing.T) { @@ -242,7 +242,7 @@ func TestEditor_OnCompletionPathToImageEmitsAttachFileMessage(t *testing.T) { require.NotNil(t, cmd) msg := cmd() - assert.NotNil(t, msg) + require.NotNil(t, msg) var attachmentMsg message.Attachment if fpickedMsg, ok := msg.(filepicker.FilePickedMsg); ok {