style(입출고): 발주 목록 표 머리글 강조
가운데 정렬, 굵게, 글자 11% 확대(12px → 13.32px), 회색 배경. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,12 @@ function check(name, cond, extra) {
|
||||
check("필터 줄 높이가 맞음", Math.abs((box.y + box.height / 2) - (search.y + search.height / 2)) < 4, { box: box, search: search });
|
||||
await p.screenshot({ path: path.join(__dirname, ".out", "inout_list.png") });
|
||||
|
||||
// 목록 머리글(2026-11-05) — 숫자 열까지 가운데, 굵게, 12px × 1.11, 회색 배경
|
||||
const headStyles = await p.locator(".io-table thead th").evaluateAll(function (els) {
|
||||
return els.map(function (el) { const c = getComputedStyle(el); return [c.textAlign, c.fontWeight, c.fontSize, c.backgroundColor].join("|"); });
|
||||
});
|
||||
check("머리글 모양", headStyles.length > 0 && headStyles.every(function (s) { return s === "center|700|13.32px|rgb(242, 242, 242)"; }), headStyles);
|
||||
|
||||
// 목록 입고일 열(2026-11-05) — 입고 예정일과 발주 사이, 여러 날은 한 칸에서 줄바꿈, 입고 전 "-"
|
||||
const heads = await p.locator(".io-table thead th").allInnerTexts();
|
||||
check("입고일 열 위치", heads.indexOf("입고일") === heads.indexOf("입고 예정일") + 1 && heads.indexOf("발주") === heads.indexOf("입고일") + 1, heads);
|
||||
|
||||
Reference in New Issue
Block a user