Offer nvim or OpenCode when creating a pipeline
This commit is contained in:
@@ -40,8 +40,12 @@ func TestTemplateMarkdownPreviewDraftAndKeyboardScope(t *testing.T) {
|
||||
m = press(m, "v")
|
||||
updated, cmd := m.updateTemplates(tea.KeyMsg{Type: tea.KeyEnter})
|
||||
m = updated.(Model)
|
||||
if cmd == nil {
|
||||
t.Fatal("template should launch authoring directly")
|
||||
if cmd == nil || !m.editorOpen || !m.editorDraft.createOnly || m.editorDraft.source != m.templates[m.templateIndex].Source {
|
||||
t.Fatal("template should offer an editor without losing the selected source")
|
||||
}
|
||||
m = press(m, "esc")
|
||||
if m.editorOpen || !m.templateOpen {
|
||||
t.Fatal("canceling editor picker should return to template gallery")
|
||||
}
|
||||
m = press(m, "esc")
|
||||
if m.templateOpen {
|
||||
|
||||
Reference in New Issue
Block a user