Let the lead move the right pane while it shows the Project tab

This commit is contained in:
Ian Gulliver
2026-10-15 11:00:24 -07:00
parent 52fd9ea8f6
commit 54d03df19d
4 changed files with 17 additions and 4 deletions
+13
View File
@@ -117,6 +117,19 @@ func TestLeadSignalsAndShow(t *testing.T) {
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)
})
e.waitFor("lead idle after show on an emptied inbox", leadIdle)
err = m.SetFocus(e.ctx, login, api.Focus{ProjectId: &e.project.Id, Tabs: []api.TaskTab{api.TabProject}, Tab: api.TabProject}, login)
if err != nil {
t.Fatalf("focus project: %v", err)
}
_, err = m.MessageLead(e.ctx, e.user, "Call the show tool with task_id "+e.task.Id+", tabs [\"transcript\"] and tab \"transcript\". Then say done.", "", nil)
if err != nil {
t.Fatalf("message lead: %v", err)
}
e.waitFor("show allowed over the project tab", func(ev api.Event) bool {
return ev.Kind == "focus.updated" && ev.Actor == login+" (lead)" && ev.Payload["tab"] == string(api.TabTranscript)
})
}
func TestFocusProject(t *testing.T) {