fix: expand session summary prose with panel
This commit is contained in:
@@ -47,6 +47,16 @@ test("lets the Final SQL document use the full resized panel width", async () =>
|
||||
expect(sqlSection?.parentElement).not.toHaveClass("max-w-[76ch]");
|
||||
});
|
||||
|
||||
test("lets text documents adapt to the full resized panel width", async () => {
|
||||
wrap(<SessionDocumentsPanel session={base} onClose={vi.fn()} onResume={vi.fn()} desktopSplit />);
|
||||
|
||||
const questionSection = (
|
||||
await screen.findByRole("heading", { name: "Original question" })
|
||||
).closest("section");
|
||||
expect(questionSection).toHaveClass("w-full");
|
||||
expect(questionSection).not.toHaveClass("max-w-[76ch]");
|
||||
});
|
||||
|
||||
test("shows Resume for resumable, hides it for finalized", async () => {
|
||||
const { rerender } = wrap(<SessionDocumentsPanel session={base} onClose={vi.fn()} onResume={vi.fn()} />);
|
||||
expect(await screen.findByRole("button", { name: /resume/i })).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user