S3.10: office card shows the person's pixel portrait; provider policy explanations move into column tooltips
CI / Typecheck, lint, tests, e2e (push) Failing after 6m37s
CI / Typecheck, lint, tests, e2e (push) Failing after 6m37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5a4e87300
commit
05ad409624
4 files changed
+16
-14
No files matched your search
@@ -128,6 +128,7 @@ test("the office floor opens agent details on click", async () => {
|
||||
// Different people look different.
|
||||
const looks = await avatars.evaluateAll((canvases) => canvases.map((canvas) => (canvas as HTMLCanvasElement).toDataURL()));
|
||||
expect(new Set(looks).size).toBe(4);
|
||||
const avaLook = await page.locator(".org-node-card", { hasText: "Ava Patel" }).locator("canvas.pixel-avatar").evaluate((canvas) => (canvas as HTMLCanvasElement).toDataURL());
|
||||
await page.getByRole("button", { name: "Office", exact: true }).click();
|
||||
await expect(canvas).toBeVisible();
|
||||
await page.waitForTimeout(300);
|
||||
@@ -139,6 +140,8 @@ test("the office floor opens agent details on click", async () => {
|
||||
const avaCard = page.getByRole("dialog", { name: "Agent Ava Patel" });
|
||||
await expect(avaCard).toBeVisible();
|
||||
await expect(avaCard.getByText("Design", { exact: true })).toBeVisible();
|
||||
// The card shows the same pixel face the org chart drew for Ava.
|
||||
expect(await avaCard.locator("canvas.pixel-avatar").evaluate((canvas) => (canvas as HTMLCanvasElement).toDataURL())).toBe(avaLook);
|
||||
|
||||
const outDir = resolve("test-results/screenshots");
|
||||
mkdirSync(outDir, { recursive: true });
|
||||
|
||||
Reference in new issue
Block a user