fix(ui): use default cursor for mount fallback (#103448)

* fix(ui): use default cursor for mount fallback

* test(ui): focus mount fallback cursor coverage
This commit is contained in:
Peter Steinberger
2026-07-10 11:43:32 +01:00
committed by GitHub
parent 74717f6a5a
commit 7d87cedcda
2 changed files with 35 additions and 1 deletions
-1
View File
@@ -158,7 +158,6 @@
background: transparent;
font: inherit;
font-weight: 700;
cursor: pointer;
}
.mount-fallback__button--primary {
@@ -190,3 +190,38 @@ describeBrowserLayout("touch-primary form controls", () => {
}
});
});
describeBrowserLayout("mount fallback cursor", () => {
it("uses the default cursor for its controls and the pointer for its real link", async () => {
const browser = await chromium.launch({
executablePath: chromiumExecutablePath,
headless: true,
});
try {
const page = await browser.newPage();
await page.setContent(readStyleSheet("ui/index.html"));
const cursors = await page.evaluate(() => {
const cursor = (selector: string) => {
const node = document.querySelector(selector);
if (!(node instanceof HTMLElement)) {
throw new Error(`Missing cursor fixture ${selector}`);
}
return getComputedStyle(node).cursor;
};
return {
retry: cursor("#openclaw-mount-retry"),
wait: cursor("#openclaw-mount-wait"),
docs: cursor('.mount-fallback__panel a[href^="https://"]'),
};
});
expect(cursors).toEqual({
retry: "default",
wait: "default",
docs: "pointer",
});
} finally {
await browser.close().catch(() => {});
}
});
});