style(라이브): 방송·호스트 편집 창을 애니메이션으로 표시
창이 나타날 때 0.2초 동안 아래에서 올라오며 커지고 뒤 배경은 서서히 어두워진다. 브라우저의 움직임 줄이기 설정이면 애니메이션 없이 바로 뜬다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -109,6 +109,24 @@ function check(name, cond, extra) {
|
||||
const text = await p.locator("#lv-side-cal").innerText();
|
||||
check("영문 화면 = 달력도 영어", !/[가-힣]/.test(text) && text.includes("November 2026") && text.includes("Sun") && text.includes("Replacement"), text);
|
||||
check("영문 말풍선", (await day("2026-11-09").getAttribute("title")) === "Deepavali (Replacement)");
|
||||
// 방송 창이 애니메이션으로 나타남(추가·고치기 같은 창), 움직임 줄이기 설정이면 없음
|
||||
await p.goto("http://erp.test/live/calendar?month=2026-11");
|
||||
await p.waitForTimeout(200);
|
||||
const anim = function () { return p.locator("#lv-dlg").evaluate(function (el) { const c = getComputedStyle(el); return c.animationName + "|" + c.animationDuration; }); };
|
||||
await p.locator("#lv-add").click();
|
||||
check("추가 창 애니메이션", (await anim()) === "lv-dlg-in|0.2s", await anim());
|
||||
await p.waitForTimeout(300);
|
||||
const opened = await p.locator("#lv-dlg").evaluate(function (el) { const c = getComputedStyle(el); return c.opacity + "|" + c.transform; });
|
||||
check("끝나면 제자리", opened === "1|none", opened);
|
||||
await p.screenshot({ path: path.join(__dirname, ".out", "live_dialog.png") });
|
||||
await p.locator("#lv-dlg [data-close]").click();
|
||||
await p.locator(".lv-card-edit").first().click();
|
||||
check("고치기 창 애니메이션", (await anim()) === "lv-dlg-in|0.2s", await anim());
|
||||
await p.locator("#lv-dlg [data-close]").click();
|
||||
await p.emulateMedia({ reducedMotion: "reduce" });
|
||||
await p.locator("#lv-add").click();
|
||||
check("움직임 줄이기 = 없음", (await anim()).startsWith("none"), await anim());
|
||||
await p.emulateMedia({ reducedMotion: "no-preference" });
|
||||
check("스크립트 오류 없음", errors.length === 0, errors);
|
||||
} finally {
|
||||
await browser.close();
|
||||
|
||||
Reference in New Issue
Block a user