feat(cupang): 배분 완료 도장·완료 카드 흐리게, 박스명 배지 제거
- ② 제품별 카드에서 "쿠팡박스" 배지 제거(모든 규칙이 같은 박스명이라 무의미) - 배분이 끝난 제품 카드·혼합 박스에 파란 "배분 완료" 도장(살짝 기울어진 테두리, 찍히는 애니메이션) - 완료된 카드는 글자를 회색으로 낮추고, 혼합 박스는 상자 아이콘까지 흑백 처리해 남은 카드와 한눈에 구분되게 함 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -122,6 +122,8 @@ function dragCardTo(card, target) {
|
||||
check("전량 담기 후 잔여 0", text(".cpg-sum-prod .cpg-sum-prod-nums").startsWith("0박스0개"),
|
||||
text(".cpg-sum-prod .cpg-sum-prod-nums"));
|
||||
check("잔여 0 카드는 드래그 불가", $$(".cpg-sum-prod")[0].classList.contains("is-done"));
|
||||
check("배분 완료 도장 표시", !!$$(".cpg-sum-prod")[0].querySelector(".cpg-stamp"));
|
||||
check("제품 카드에 박스명 배지 없음", !$$(".cpg-sum-prod")[0].querySelector(".erp-badge"));
|
||||
check("센터 합계 2박스/16개", text(".cpg-dist-sum").replace(/\s/g, "").startsWith("2박스16개"),
|
||||
text(".cpg-dist-sum"));
|
||||
|
||||
@@ -143,6 +145,7 @@ function dragCardTo(card, target) {
|
||||
$("#cpg-dlg-ok").click();
|
||||
check("혼합 박스가 센터에 담긴다", $$(".cpg-dist-item").length === 2);
|
||||
check("혼합 담은 뒤 배분됨 표시", $(".cpg-box-card").className.includes("is-done"));
|
||||
check("혼합 박스에도 도장", !!$(".cpg-box-card .cpg-stamp"));
|
||||
check("혼합 박스 아래 내용물 트리", $$(".cpg-dist-tree li").length === 2,
|
||||
String($$(".cpg-dist-tree li").length));
|
||||
check("트리에 제품명·개수", text(".cpg-dist-tree li").includes("미라네 4호 세트") &&
|
||||
|
||||
Reference in New Issue
Block a user