← back to Wallco Ai
deploy: add needs-tif admin-asset smoke test (5c) — assert marquee select + sorts + sparse banner shipped, via loopback admin gate
4c1e3e33a6ca483d453fa9a62555aea6bc33dd90 · 2026-06-02 10:26:59 -0700 · Steve Abrams
Files touched
Diff
commit 4c1e3e33a6ca483d453fa9a62555aea6bc33dd90
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jun 2 10:26:59 2026 -0700
deploy: add needs-tif admin-asset smoke test (5c) — assert marquee select + sorts + sparse banner shipped, via loopback admin gate
---
deploy-kamatera.sh | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/deploy-kamatera.sh b/deploy-kamatera.sh
index e527db0..ed63cf6 100755
--- a/deploy-kamatera.sh
+++ b/deploy-kamatera.sh
@@ -187,6 +187,37 @@ else
exit 1
fi
+# 6c. needs-tif admin-asset smoke test — confirm the just-deployed /admin/needs-tif
+# actually shipped its features. It's admin-gated (loopback-only) + prod's own DB is
+# sparse, so we can't run the full drag-select E2E here (that's scripts/test-needstif.js
+# on data-rich Mac2). Instead, fetch the served HTML over the box's loopback (which
+# passes the admin gate) and assert the critical markers are present. Pure structural
+# "did it ship" check — no browser, no data needed. Functional E2E lives on Mac2.
+echo "[5c/6] needs-tif admin-asset smoke test → loopback on $REMOTE"
+NT_RC=$(ssh "$REMOTE" "PORT=$PORT bash -s" <<'EOS' 2>&1
+H=$(curl -s "http://127.0.0.1:${PORT}/admin/needs-tif")
+CODE=$(curl -s -o /dev/null -w '%{http_code}' "http://127.0.0.1:${PORT}/admin/needs-tif")
+if [ "$CODE" != "200" ]; then echo "HTTP $CODE (admin route not serving)"; exit 2; fi
+MISSING=""
+check() { printf '%s' "$H" | grep -qF "$1" || MISSING="$MISSING | $1"; }
+check 'class="marquee"'
+check 'id="selbar"'
+check 'applyMarquee'
+check 'Copy IDs'
+check 'Group size (largest first)'
+check 'Color (by hue)'
+check 'id="sparse"'
+if [ -n "$MISSING" ]; then echo "missing markers:$MISSING"; exit 3; fi
+echo OK
+EOS
+) && NT_OK=1 || NT_OK=0
+if [ "$NT_OK" = "1" ]; then
+ echo " OK — /admin/needs-tif shipped (marquee select + selection bar + sorts + sparse banner present)."
+else
+ echo "ERROR: needs-tif admin-asset smoke test FAILED — $NT_RC"
+ exit 1
+fi
+
# 7. Nginx vhost (create if not present)
echo "[6/6] nginx vhost..."
VHOST_SRC="/etc/nginx/sites-available/$SITE"
← 693981b test: add E2E for /admin/needs-tif (marquee select + 8 sorts
·
back to Wallco Ai
·
Add settlement-gate-batch.js: gate ungated designs by catego 4eebff7 →