운영 안정화와 화면 회귀 검증을 반영
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

@ -391,6 +391,52 @@ test.describe("회기 시간 수명주기 — 알람·만료·유예·종료", (
).toBeVisible();
});
test("모바일 만료 안내와 mid 점검 중에도 발화 조작면이 제어막과 겹치지 않는다", async ({
page,
}) => {
await routeTimedSession(page, {
startedAgoSeconds: 3700,
durationLimitSeconds: 3600,
});
await page.route(`**/api/sessions/${SESSION_ID}/stream`, (route) =>
route.fulfill(jsonRoute({ detail: "session_time_over" }, 409)),
);
for (const viewport of [
{ width: 320, height: 568 },
{ width: 393, height: 727 },
]) {
await page.setViewportSize(viewport);
await openSession(page);
await keepTalkingButton(page).click();
const composer = page.getByLabel("학습자 발화 입력");
const send = page.getByRole("button", { name: "보내기" });
const controlbar = page.locator(".sx-controlbar");
await composer.fill("마지막으로 한 가지만 더 여쭤봐도 될까요?");
const [sendBox, controlbarBox] = await Promise.all([
send.boundingBox(),
controlbar.boundingBox(),
]);
expect(sendBox).not.toBeNull();
expect(controlbarBox).not.toBeNull();
expect(sendBox!.width).toBeGreaterThanOrEqual(44);
expect(sendBox!.height).toBeGreaterThanOrEqual(44);
expect(
sendBox!.x < controlbarBox!.x + controlbarBox!.width &&
sendBox!.x + sendBox!.width > controlbarBox!.x &&
sendBox!.y < controlbarBox!.y + controlbarBox!.height &&
sendBox!.y + sendBox!.height > controlbarBox!.y,
).toBe(false);
await send.click();
await expect(
page.getByText("회기 시간이 모두 지나 새 발화를 보낼 수 없습니다", { exact: false }),
).toBeVisible();
}
});
// usecase: 종료를 확정하면 축어록이 저장되고 리뷰 화면으로 이동한다
test("종료 확정 시 end 호출 후 리뷰 경로로 이동한다", async ({ page }) => {
const endCalls = await routeTimedSession(page, {