fix: harden array builder editing workflows

This commit is contained in:
2026-08-28 23:10:41 +09:00
parent 3714146df9
commit 122b6cf7be
14 changed files with 1148 additions and 165 deletions
+7 -1
View File
@@ -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",