@@ -22,9 +22,9 @@ conftest.py — 全域 fixtures、環境偵測(Window
2222config/settings.py — 多站台 SiteConfig,從 .env 讀取
2323pages/factory.py — 前台:site_id → LoginPage/HomePage 路由(registry dict)
2424pages/dashboard/factory.py — 後台:site_id → DashboardLoginPage/ManagementPage 路由
25- pages/rc/, pages/lt/, pages/re/, pages/rd/ — 各站前台 Page Objects
25+ pages/rc/, pages/lt/, pages/re/, pages/rd/, pages/qw/ — 各站前台 Page Objects
2626pages/dashboard/<site_id>/ — 各站後台 Page Objects
27- tests/rc/, tests/lt/, tests/re/, tests/rd/ — 各站前台測試(含 test_p0_smoke.py + feature/)
27+ tests/rc/, tests/lt/, tests/re/, tests/rd/, tests/qw/ — 各站前台測試(含 test_p0_smoke.py + feature/)
2828tests/api/<site_id>/ — API 層測試(不啟動瀏覽器,requests 直打 API)
2929tests/dashboard/<site_id>/ — 後台管理介面測試
3030utils/locale_helper.py — set_locale():注入 `i18n_locale` cookie(LT 用)
@@ -60,6 +60,7 @@ playwright install chromium
6060.venv/bin/pytest tests/lt/ # lt 站
6161.venv/bin/pytest tests/re/ # re 站
6262.venv/bin/pytest tests/rd/ # rd 站
63+ .venv/bin/pytest tests/qw/ # qw 站
6364.venv/bin/pytest tests/api/ # 僅 API 測試
6465.venv/bin/pytest tests/dashboard/ # 僅後台測試
6566.venv/bin/pytest tests/lt/test_p0_smoke.py -m p0 # lt P0 smoke
@@ -81,8 +82,8 @@ GitHub Actions 自動跑測試與 docs 同步檢查:
8182
8283| Workflow | 觸發 | 跑什麼 |
8384| ---| ---| ---|
84- | ` .github/workflows/p0.yml ` | PR / push to main / daily 09:00 台灣 / 手動 | 4 站 P0 smoke matrix |
85- | ` .github/workflows/full-regression.yml ` | 週一 08:00 台灣 / 手動 | 4 站全套(P0 + feature) |
85+ | ` .github/workflows/p0.yml ` | PR / push to main / daily 09:00 台灣 / 手動 | 5 站 P0 smoke matrix(rc/lt/re/rd/qw) |
86+ | ` .github/workflows/full-regression.yml ` | 週一 08:00 台灣 / 手動 | 5 站全套(P0 + feature) |
8687| ` .github/workflows/docs-sync-check.yml ` | PR | code 變動是否同步更新 docs |
8788
8889操作細節(trigger 規則、cron 時段、secrets 清單、看 run / 下載 artifact / debug、docs sync check 操作 + override)見 [ ` docs/cicd.md ` ] ( docs/cicd.md ) 。
0 commit comments