fix(frontend): wrap schema-linking fallback pre; test archived hides Resume
This commit is contained in:
@@ -43,3 +43,9 @@ test("shows Resume for resumable, hides it for finalized", async () => {
|
||||
rerender(<SessionDocumentsPanel session={{ ...base, status: "finalized" }} onClose={vi.fn()} onResume={vi.fn()} />);
|
||||
expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("hides Resume for an archived session", async () => {
|
||||
wrap(<SessionDocumentsPanel session={{ ...base, archived: true }} onClose={vi.fn()} onResume={vi.fn()} />);
|
||||
await screen.findByText("Original question");
|
||||
expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user