add reviewer assigning
This commit is contained in:
@@ -56,11 +56,10 @@ func TestTargetBranchCompletionIsKeyboardFirst(t *testing.T) {
|
||||
},
|
||||
BaseRef: "main", Permissions: ViewerPermissions{CanUpdatePR: true},
|
||||
}
|
||||
command := m.startPREdit()
|
||||
if command == nil {
|
||||
if command := m.startPREdit(); command == nil {
|
||||
t.Fatal("opening the editor did not request branches")
|
||||
}
|
||||
updated, _ := m.Update(command())
|
||||
updated, _ := m.Update(m.loadPREditBranches()())
|
||||
m = updated.(App)
|
||||
m.prEditField = prEditBaseField
|
||||
m.prEditEditors[prEditBaseField] = newTextEditor("release", false)
|
||||
@@ -79,7 +78,7 @@ func TestTargetBranchCompletionIsKeyboardFirst(t *testing.T) {
|
||||
|
||||
updated, _ = m.updatePREditInput(tea.KeyMsg{Type: tea.KeyTab})
|
||||
m = updated.(App)
|
||||
if m.prEditField != prEditBodyField {
|
||||
if m.prEditField != prEditReviewersField {
|
||||
t.Fatalf("second tab did not advance: field=%d", m.prEditField)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user