Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Use the desktop pointer fixture for lifecycle hover coverage

tt-a1i128a8aa1b29d
diff --git a/archify/test/lifecycle-rail-browser.test.mjs b/archify/test/lifecycle-rail-browser.test.mjs
index 009225f6..75e38d54 100644
--- a/archify/test/lifecycle-rail-browser.test.mjs
+++ b/archify/test/lifecycle-rail-browser.test.mjs
@@ -6,7 +6,8 @@ import os from 'node:os';
import path from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
-import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';
+import { findChrome } from '../bin/visual-check.mjs';
+import { desktopBrowser, desktopPointerCheck } from './helpers/desktop-browser.mjs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const skillRoot = path.resolve(__dirname, '..');
@@ -62,9 +63,11 @@ test('lifecycle rail stays ordinary in READ and hides for hover, relationship pr
artifact,
]);
- const browser = new ChromeVisualBrowser(chromePath);
+ const browser = desktopBrowser(chromePath);
try {
+ const checkPointer = await desktopPointerCheck(browser, await browser.sessionPromise);
const sessionId = await loadArtifact(browser, artifact);
+ await checkPointer();
const states = await evaluate(browser, sessionId, `(async function () {
function settle(delay) {
return new Promise(function (resolve) {