운영 안정화와 화면 회귀 검증을 반영
Some checks failed
API contract / OpenAPI type drift (push) Failing after 6m2s

This commit is contained in:
Yun Chan 2026-10-20 16:33:48 +09:00
parent 6e3123091a
commit aeddaa6972
69 changed files with 3178 additions and 424 deletions

View file

@ -684,7 +684,7 @@ test.describe("full sweep — counseling session", () => {
]) {
await expect(transcript).not.toContainText(token);
}
await expect(transcript).toContainText("익명 내담자 이야기");
await expect(transcript).toContainText("익명 인물 이야기");
await expect(transcript).toContainText(
"뭘 할 수 있게 되는 건지 잘 모르겠는데요",
);
@ -1022,10 +1022,7 @@ test.describe("full sweep — counseling session", () => {
mic: rect(mic),
micText: rect(micText),
pageLeaf: getComputedStyle(pageRoot, "::before").backgroundImage,
stageLeaf: getComputedStyle(
document.querySelector<HTMLElement>(".sx-orb-wrap")!,
"::before",
).backgroundImage,
pageRightLeaf: getComputedStyle(pageRoot, "::after").backgroundImage,
leafAsset: {
ok: leafResponse.ok,
contentType: leafResponse.headers.get("content-type"),
@ -1036,22 +1033,33 @@ test.describe("full sweep — counseling session", () => {
expect(layout).not.toBeNull();
expect(layout!.viewport).toEqual({ width: 1536, height: 1024 });
expect(layout!.page).toMatchObject({ left: 0, top: 0, width: 1536, height: 1024 });
expect(layout!.bar.width).toBeGreaterThanOrEqual(1400);
expect(layout!.bar.width).toBeLessThanOrEqual(1410);
expect(layout!.grid.width).toBeGreaterThanOrEqual(1400);
expect(layout!.grid.width).toBeLessThanOrEqual(1410);
expect(layout!.left.width).toBeGreaterThanOrEqual(324);
expect(layout!.left.width).toBeLessThanOrEqual(328);
expect(layout!.right.width).toBeGreaterThanOrEqual(355);
expect(layout!.right.width).toBeLessThanOrEqual(359);
const alignedRegions = [layout!.bar, layout!.grid, layout!.controls];
for (const region of alignedRegions) {
expect(region.width).toBeGreaterThanOrEqual(1450);
expect(region.width).toBeLessThanOrEqual(1480);
expect(Math.abs(region.left - layout!.bar.left)).toBeLessThanOrEqual(1);
expect(Math.abs(region.right - layout!.bar.right)).toBeLessThanOrEqual(1);
}
const availableGridWidth = layout!.grid.width - 28;
const columns = [
{ rect: layout!.left, minimum: 260, fraction: 0.76 },
{ rect: layout!.center, minimum: 520, fraction: 2.12 },
{ rect: layout!.right, minimum: 260, fraction: 0.72 },
];
for (const column of columns) {
expect(column.rect.width).toBeGreaterThanOrEqual(column.minimum);
expect(
Math.abs(
column.rect.width - (availableGridWidth * column.fraction) / 3.6,
),
).toBeLessThanOrEqual(1);
}
expect(layout!.center.left).toBeGreaterThan(layout!.left.right);
expect(layout!.right.left).toBeGreaterThan(layout!.center.right);
expect(layout!.controls.width).toBeGreaterThanOrEqual(1460);
expect(layout!.controls.width).toBeLessThanOrEqual(1470);
expect(layout!.controls.bottom).toBeLessThanOrEqual(1024);
expect(layout!.micText.left).toBeGreaterThanOrEqual(layout!.mic.right + 8);
expect(layout!.pageLeaf).toContain("leaf-5.webp");
expect(layout!.stageLeaf).toContain("leaf-1.webp");
expect(layout!.pageRightLeaf).toContain("leaf-1.webp");
expect(layout!.leafAsset).toEqual({ ok: true, contentType: "image/webp" });
const screenshotPath = testInfo.outputPath("session-botanical-1536x1024.png");