feat(cupang): 출고리스트 작성 팝업 높이 850px 고정 — 버튼 줄은 맨 아래

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 16:27:38 +09:00
parent 6fffa88f68
commit bed658576d
4 changed files with 18 additions and 3 deletions
+9
View File
@@ -131,6 +131,15 @@ async function addProduct(card, text, qty) {
await page.waitForFunction(() => document.querySelectorAll(".cpg-ol-center-sel option").length === 4);
assert.deepEqual(await c1.locator(".cpg-ol-center-sel option").allInnerTexts(), ["센터 선택", "대구3", "인천32", "+ 직접 입력"]);
assert.ok(await page.locator("#cpg-ol-progress").isHidden(), "처음엔 진행 막대 숨김");
// 팝업 높이 850px 고정, 버튼 줄은 맨 아래(아래 여백 = 안쪽 여백 20px)
const boxH = await page.evaluate(() => {
const box = document.querySelector(".cpg-ol-box").getBoundingClientRect();
const act = document.querySelector(".cpg-ol-actions").getBoundingClientRect();
return { h: box.height, gap: box.bottom - act.bottom };
});
assert.equal(Math.round(boxH.h), 850);
assert.ok(Math.abs(boxH.gap - 20) <= 1, "버튼 줄이 맨 아래 " + boxH.gap);
await page.screenshot({ path: path.join(OUT, "cupang-outbound-open.png") });
// 출고일 → 센터입고일은 다음날로 자동
await pickDate(page, "cpg-ol-ship-date", "2026-10-26");