MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readConsoleStyle

Function readConsoleStyle

e2e/scenarios/artifacts.test.ts:147–154  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

145 page.evaluate(() => globalThis.__handshakeOrder ?? []);
146
147const readConsoleStyle = (page: Page): Promise<{ primary: string; buttonBg: string }> =>
148 page.evaluate(() => {
149 const button = document.querySelector("button");
150 return {
151 primary: getComputedStyle(document.documentElement).getPropertyValue("--primary").trim(),
152 buttonBg: button ? getComputedStyle(button).backgroundColor : "",
153 };
154 });
155
156// The shell's compiled stylesheet declares `--mcp-apps-shell-stylesheet: 1`
157// on `:root` as a provenance marker (see the shell's globals.css): the shell's

Callers 1

artifacts.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected