Files
pikasTech-HWLAB/web/hwlab-cloud-web/scripts/workbench-layout.test.ts
T
root 68f57e0eb4
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success
fix: give Workbench conversation the full workspace
2026-07-20 13:37:42 +02:00

16 lines
778 B
TypeScript

// SPEC: PJ2026-010401 Web工作台.
// Responsibility: Keep the conversation as the dominant Workbench surface.
import assert from "node:assert/strict";
import fs from "node:fs";
import test from "node:test";
const viewSource = fs.readFileSync(new URL("../src/views/workbench/CodeWorkbenchView.vue", import.meta.url), "utf8");
const styleSource = fs.readFileSync(new URL("../src/styles/workbench.css", import.meta.url), "utf8");
test("Workbench gives the former node-ops pane width to the conversation", () => {
assert.doesNotMatch(viewSource, /HwpodNodeOpsPanel|workbench-tools-column/u);
assert.match(styleSource, /\.workbench-grid\s*\{[^}]*grid-template-columns:\s*auto minmax\(0, 1fr\);/su);
assert.doesNotMatch(styleSource, /\.workbench-tools-column\s*\{/u);
});