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

Function readConsoleStyle

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

Source from the content-addressed store, hash-verified

150 page.evaluate(() => globalThis.__handshakeOrder ?? []);
151
152const readConsoleStyle = async (page: Page): Promise<{ primary: string; buttonBg: string }> => {
153 const button = page.getByRole("button", { name: "Rename", exact: true });
154 await button.waitFor();
155 return button.evaluate((element) => ({
156 primary: getComputedStyle(document.documentElement).getPropertyValue("--primary").trim(),
157 buttonBg: getComputedStyle(element).backgroundColor,
158 }));
159};
160
161// The shell's compiled stylesheet declares `--mcp-apps-shell-stylesheet: 1`
162// 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