Allow toolbox tools to collapse into their headers
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
1df7b32dbb
commit
b5901b31e3
8 changed files with 228 additions and 166 deletions
|
|
@ -968,6 +968,19 @@ test("toolbox module order normalizes one and two column layouts", () => {
|
|||
}, modules).two, [["a", "b", "c", "d"], []]);
|
||||
});
|
||||
|
||||
test("toolbox modules preserve only active shell display options", () => {
|
||||
const toolbox = normalizeToolbox({
|
||||
modules: [
|
||||
{ id: "collapsed", type: "notepad", collapsed: true, scrollable: true },
|
||||
{ id: "expanded", type: "links", collapsed: false }
|
||||
]
|
||||
});
|
||||
|
||||
assert.equal(toolbox.modules[0].collapsed, true);
|
||||
assert.equal(toolbox.modules[0].scrollable, true);
|
||||
assert.equal("collapsed" in toolbox.modules[1], false);
|
||||
});
|
||||
|
||||
test("toolbox export remaps module order ids", () => {
|
||||
const payload = createToolboxExportPayload(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue