fix: harden array builder editing workflows
This commit is contained in:
@@ -51,6 +51,7 @@ const LAYOUT_CASES = [
|
||||
defaultGridTracks: 2,
|
||||
homePanelWidth: 360,
|
||||
homeGridTracks: 1,
|
||||
compactWorkspaceFirst: true,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -444,7 +445,12 @@ async function exerciseSplitLayout(definition) {
|
||||
|
||||
const panelRect = mounted.panel.getBoundingClientRect();
|
||||
const workspaceRect = mounted.workspace.getBoundingClientRect();
|
||||
if (definition.panelSide === "start") {
|
||||
if (definition.compactWorkspaceFirst) {
|
||||
assert(
|
||||
panelRect.top >= workspaceRect.bottom - 1,
|
||||
definition.label + " compact workspace precedes the long settings panel",
|
||||
);
|
||||
} else if (definition.panelSide === "start") {
|
||||
assert(
|
||||
workspaceRect.top >= panelRect.bottom - 1,
|
||||
definition.label + " compact workspace follows the panel vertically",
|
||||
|
||||
Reference in New Issue
Block a user