Skip to content

Commit 411c3a6

Browse files
committed
test(search): accept a denied chat's recovery reported after Return home
1 parent 37ed646 commit 411c3a6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/sim/scripts/test-organization-search-e2e.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,9 @@ try {
10601060
'Assistant history rejects a chat from another organization',
10611061
'A streamed denied chat remains navigable after hydration',
10621062
].includes(event.stage)) ||
1063+
// React reports the recovery once hydration settles, which can be after Return home.
1064+
(event.url === `${baseUrl.origin}${root}/home` &&
1065+
event.stage === 'A streamed denied chat remains navigable after hydration') ||
10631066
(event.url === `${baseUrl.origin}${root}/chat/${agentId}` &&
10641067
event.stage ===
10651068
'Search-only members have Home with the Assistant and their history, but no agent chat'))

0 commit comments

Comments
 (0)