4 Commits

Author SHA1 Message Date
weli 5b19d6d52d test: accept empty packages in production smoke API test
Production may have 0 published packages — don't fail on empty results.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 16:20:15 +08:00
weli cfe60ebbb1 ci: add production smoke test workflow (manual + daily cron)
- New workflow `production Smoke` with workflow_dispatch + daily schedule
  (05:00 UTC). Does NOT run on push/PR.
- Runs smoke-http, guest-onboarding, home-shell, and unauthenticated
  store tests against music-room.huiwings.cn.
- Includes optional SSH health check (if PROD_SSH_* secrets configured).
- Also makes smoke-http testOrgId configurable via PROD_ORG_ID env var
  for cross-environment use (moicen vs huiwings).
- Adds production-remote-check.sh script.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 15:38:15 +08:00
weli 8e3f61afeb test: add HTTP smoke tests for public-packages API (anti-regression for nginx proxy)
The admin.moicen.com nginx must proxy /api/v1/clazz/ to htykc:3002.
Without it, the API returns SPA index.html instead of JSON, causing
"接口返回了页面而非 JSON" errors in the frontend.

Tests verify:
- public-packages API returns Content-Type: application/json
- Response body has valid structure with package fields

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 09:30:36 +08:00
weli d85027a933 feat(e2e): 核心全链路用例与辅助模块
新增 smoke-http、core-full-chain(访客深链守卫、登录黄金路径、可选健康 URL);抽出 music-room-session 辅助;Playwright 忽略本地 admin_debug;CI 注入可选 MOICEN_HEALTHCHECK_URL。

Made-with: Cursor
2026-04-28 11:53:48 +08:00