style(입출고): 발주 목록 거르기 줄 날짜·검색을 오른쪽 정렬
상태·공장은 왼쪽에 두고 발주일부터 찾기까지 한 묶음으로 오른쪽 끝에 붙인다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,6 +64,19 @@ function check(name, cond, extra) {
|
||||
const search = await p.locator('input[name="q"]').boundingBox();
|
||||
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) — 발주일~찾기 묶음의 오른쪽 끝 = 표 상자 오른쪽 끝(표는 넓으면 상자 안에서 가로 스크롤), 줄이 바뀌어도
|
||||
const rightEdge = async function () {
|
||||
const btn = await p.getByRole("button", { name: "찾기" }).boundingBox();
|
||||
const wrap = await p.locator(".erp-table-wrap").boundingBox();
|
||||
return Math.abs(btn.x + btn.width - (wrap.x + wrap.width));
|
||||
};
|
||||
check("좁은 화면: 찾기가 오른쪽 끝", (await rightEdge()) < 2, await rightEdge());
|
||||
await p.setViewportSize({ width: 2000, height: 900 });
|
||||
await p.waitForTimeout(100);
|
||||
await p.screenshot({ path: path.join(__dirname, ".out", "inout_list_wide.png") });
|
||||
check("넓은 화면: 찾기가 오른쪽 끝", (await rightEdge()) < 2, await rightEdge());
|
||||
await p.setViewportSize({ width: 1400, height: 900 });
|
||||
await p.waitForTimeout(100);
|
||||
|
||||
// 목록 머리글(2026-11-05) — 숫자 열까지 가운데, 굵게, 12px × 1.11, 회색 배경
|
||||
const headStyles = await p.locator(".io-table thead th").evaluateAll(function (els) {
|
||||
|
||||
Reference in New Issue
Block a user