S3.5: every page on the pixel grid: tokenised type, square corners, pixel charts with HTML axis labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-09 12:45:15 -04:00
1 parent c97adc14cb
commit 5dfc2a6dc6
65 files changed
+362 -347

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
import { _electron as electron, expect, test } from "@playwright/test";
import { mkdirSync } from "node:fs";
import { tmpdir } from "node:os";
import { join, resolve } from "node:path";
import { randomUUID } from "node:crypto";
import { seedBuiltinSkillsFixture } from "./builtin-skills-fixture";
import { closeApp, onboard } from "./onboard";
import { offGridText } from "./pixel-grid";
test("every page and onboarding step draws its text on the pixel font's grid", async () => {
const profileDir = join(tmpdir(), `agentcompany-new-e2e-pxpages-${randomUUID()}`);
mkdirSync(profileDir, { recursive: true });
const builtinDir = seedBuiltinSkillsFixture(join(tmpdir(), `agentcompany-new-e2e-pxpages-builtin-${randomUUID()}`));
const app = await electron.launch({
args: [resolve("out/main/index.js")],
env: { ...process.env, AGENTCOMPANY_NEW_PROFILE_DIR: profileDir, AGENTCOMPANY_NEW_AUTORUN: "0", AGENTCOMPANY_NEW_BUILTIN_SKILLS_DIR: builtinDir },
});
try {
const page = await app.firstWindow();
await expect(page.getByRole("heading", { name: "Welcome" })).toBeVisible();
expect(await offGridText(page)).toEqual([]);
await onboard(page, "Grid Co");
for (const route of ["Home", "Work", "Team", "Office", "Messages", "Runs", "Files", "Library", "Approvals", "Connectors", "Settings"]) {
await page.getByRole("button", { name: route, exact: true }).click();
await page.waitForTimeout(400);
expect({ route, odd: await offGridText(page) }).toEqual({ route, odd: [] });
}
} finally {
await closeApp(app);
}
});