Free the right pane for the lead once its inbox empties or task merges
This commit is contained in:
@@ -88,6 +88,18 @@ func TestLeadSignalsAndShow(t *testing.T) {
|
||||
if f.Tab != api.TabInbox {
|
||||
t.Fatalf("focus moved while the pane was focused: %+v", f)
|
||||
}
|
||||
|
||||
err = e.store.WithdrawItem(e.ctx, created[len(created)-1].Payload["id"].(string))
|
||||
if err != nil {
|
||||
t.Fatalf("withdraw report: %v", err)
|
||||
}
|
||||
_, err = m.MessageLead(e.ctx, e.user, "Call the show tool with task_id "+e.task.Id+", tabs [\"changes\"] and tab \"changes\". Then say done.", "", nil)
|
||||
if err != nil {
|
||||
t.Fatalf("message lead: %v", err)
|
||||
}
|
||||
e.waitFor("show allowed on an emptied inbox", func(ev api.Event) bool {
|
||||
return ev.Kind == "focus.updated" && ev.Actor == login+" (lead)" && ev.Payload["tab"] == string(api.TabChanges)
|
||||
})
|
||||
}
|
||||
|
||||
func TestFocusProject(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user