Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test([story-builder-import-commit-ok-session-fail]): assert second-click retry navigates to the new session

[._.]/ Adam Eivy53942778860e
diff --git a/client/src/pages/StoryBuilder.test.jsx b/client/src/pages/StoryBuilder.test.jsx
index 600225b140..c9e460abd5 100644
--- a/client/src/pages/StoryBuilder.test.jsx
+++ b/client/src/pages/StoryBuilder.test.jsx
@@ -255,6 +255,9 @@ describe('StoryBuilder — index', () => {
fireEvent.click(screen.getByRole('button', { name: /Retry starting the builder/ }));
await waitFor(() => expect(api.createStorySession).toHaveBeenCalledTimes(2));
expect(api.commitImport).toHaveBeenCalledTimes(1);
+ // …and the retry's success is consumed: onCreated navigates to the new
+ // session's detail view, which loads it (proving the result wasn't dropped).
+ await waitFor(() => expect(api.getStorySession).toHaveBeenCalledWith('stb-import', expect.anything()));
});
it('import tab: blocks "Import & build" when no issues were extracted, offers retry', async () => {