Skip to content

Commit f3e9acb

Browse files
committed
test(web): run stateful event case before fixture mutations
1 parent 22dc792 commit f3e9acb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/web/src/components/EventRouter.browser.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ describe.sequential("EventRouter scoped orchestration sync", () => {
529529
}
530530
});
531531

532+
it("keeps a live assistant intro when a lagging thread snapshot arrives right after it", async () => {
533+
await assertLiveAssistantIntroSurvivesLaggingSnapshot();
534+
});
535+
532536
it("recovers a stale remembered route without opening a missing detail subscription", async () => {
533537
const staleThreadId = ThreadId.makeUnsafe("thread-stale-route");
534538
localStorage.setItem(
@@ -2049,7 +2053,7 @@ describe.sequential("EventRouter scoped orchestration sync", () => {
20492053
}
20502054
});
20512055

2052-
it("keeps a live assistant intro when a lagging thread snapshot arrives right after it", async () => {
2056+
async function assertLiveAssistantIntroSurvivesLaggingSnapshot() {
20532057
const mounted = await mountApp();
20542058

20552059
try {
@@ -2127,5 +2131,5 @@ describe.sequential("EventRouter scoped orchestration sync", () => {
21272131
fixture = buildFixture();
21282132
await mounted.cleanup();
21292133
}
2130-
});
2134+
}
21312135
});

0 commit comments

Comments
 (0)