Validate providers and retain complete run debugging context
This commit is contained in:
@@ -46,8 +46,13 @@ func TestCreateAndSubmit(t *testing.T) {
|
||||
m.editorInput.SetValue("ocd")
|
||||
updated, editor = m.Update(tea.KeyMsg{Type: tea.KeyEnter})
|
||||
m = updated.(Model)
|
||||
if editor == nil || m.editorOpen {
|
||||
t.Fatal("new editor choice did not launch")
|
||||
if editor != nil || m.editorOpen || m.mutationCommand == nil {
|
||||
t.Fatal("new editor choice did not require approval")
|
||||
}
|
||||
updated, editor = m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'y'}})
|
||||
m = updated.(Model)
|
||||
if editor == nil {
|
||||
t.Fatal("approved editor did not launch")
|
||||
}
|
||||
// Editor lifecycle is smoke-tested separately; feed its completion here.
|
||||
source := pipeline.Template([]string{"a", "b"}, true)
|
||||
|
||||
Reference in New Issue
Block a user