test: expect the home main conversation's ask in another space's inbox
Every project now has a main conversation of its own, so an ask waiting in the home main conversation is not visible from a project and its inbox lists it, answered in the home space. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MRtGG9ARfqqhma3t85Ro2u
This commit is contained in:
parent
f071c2257c
commit
182a9288c2
@ -207,14 +207,20 @@ describeInbox("inbox.list", () => {
|
||||
// Items of the current space carry no space.
|
||||
expect(items.filter((item) => item.space).map((item) => item.bot.id)).toEqual([remote.id]);
|
||||
|
||||
// From the other space, the same items with the sides swapped.
|
||||
// From the other space, the same items with the sides swapped, plus the ask in the home
|
||||
// main conversation: Remote's own main conversation does not show it.
|
||||
const fromRemote = await listInbox(app, cookie, remoteSpace.id);
|
||||
expect(fromRemote.map((item) => [item.kind, item.space?.id ?? null])).toEqual([
|
||||
["approval", me.spaceId],
|
||||
["ask", me.spaceId],
|
||||
["takeover", me.spaceId],
|
||||
["ask", null],
|
||||
["unread", me.spaceId],
|
||||
]);
|
||||
expect(fromRemote[1]).toMatchObject({
|
||||
bot: expect.objectContaining({ id: scout.id }),
|
||||
target: { groupId: main.groupId },
|
||||
});
|
||||
});
|
||||
|
||||
it("answers an item from another space only in that space and only for its owner", async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user