Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(e2e): measure the turn hairline against its process band

v_wyxgwange8016e8862b7
diff --git a/scripts/e2e/turn-process.tsx b/scripts/e2e/turn-process.tsx
index daf54efb9..0fbf011e4 100644
--- a/scripts/e2e/turn-process.tsx
+++ b/scripts/e2e/turn-process.tsx
@@ -257,11 +257,13 @@ export async function turnProcessProbe() {
nearLeft(leftOf(nestedLabel), leftOf(bashLabel)),
"turn, group and run titles share one text line",
);
+ const topProcess = topHeader?.parentElement ?? null;
check(
topHeader !== null &&
+ topProcess !== null &&
Math.abs(
topHeader.getBoundingClientRect().width -
- container.getBoundingClientRect().width,
+ topProcess.getBoundingClientRect().width,
) < 1,
"the turn header hairline spans the transcript band",
);