feat: expand advanced widget experiences
This commit is contained in:
1 parent
9437d211c8
commit
c099a8eef6
119 files changed
+3624
-844
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { getNotebookDisplay } from "./display";
|
||||
|
||||
describe("Notebook advanced disclosure", () => {
|
||||
test("shows the complete toolbar and document stats regardless of compact preferences", () => {
|
||||
expect(
|
||||
getNotebookDisplay({ height: 100, isAdvanced: true, isEditing: true, isSaving: false, showToolbar: false }),
|
||||
).toEqual({ showToolbar: true, toolbarMaxHeight: undefined, showDocumentStats: true });
|
||||
});
|
||||
|
||||
test("does not expose editing controls outside an active editable session", () => {
|
||||
expect(
|
||||
getNotebookDisplay({ height: 300, isAdvanced: true, isEditing: false, isSaving: false, showToolbar: true })
|
||||
.showToolbar,
|
||||
).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user