V10.507 接入 Webcrumbs 並收斂 writer approval gate
All checks were successful
CD Pipeline / deploy (push) Successful in 1m21s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m21s
This commit is contained in:
@@ -15,6 +15,7 @@ def test_metabase_and_grist_navigation_stays_inside_momo_pro():
|
||||
assert "'metabase_url': '/metabase'" in app_source
|
||||
assert "'grist_url': '/grist'" in app_source
|
||||
assert "['sales', 'daily_sales', 'monthly', 'growth', 'metabase', 'grist']" in shell
|
||||
assert 'href="/webcrumbs"' in shell
|
||||
assert "GRIST_URL=https://mo.wooo.work/grist" in env_example
|
||||
assert "APP_HOME_URL=${GRIST_APP_HOME_URL:-https://mo.wooo.work/grist}" in compose
|
||||
|
||||
@@ -35,6 +36,8 @@ def test_external_tool_bridge_pages_are_diagnostic_not_blank():
|
||||
assert "external-tool-checks" in template
|
||||
assert "external-tool-diagnostics" in template
|
||||
assert "external-tool-action-grid" in template
|
||||
assert "def webcrumbs_status()" in route_source
|
||||
assert "Webcrumbs 共用 UI Runtime" in route_source
|
||||
assert "尚未接入 proxy" in route_source
|
||||
assert "已由入口攔截" in route_source
|
||||
assert "AwoooI" not in route_source
|
||||
|
||||
@@ -22,11 +22,16 @@ def test_frontend_v2_shell_assets_exist_and_are_indexed():
|
||||
def test_frontend_v2_shell_uses_real_runtime_context():
|
||||
shell = (ROOT / "templates/components/_ewoooc_shell.html").read_text(encoding="utf-8")
|
||||
base = (ROOT / "templates/ewoooc_base.html").read_text(encoding="utf-8")
|
||||
app_source = (ROOT / "app.py").read_text(encoding="utf-8")
|
||||
config_source = (ROOT / "config.py").read_text(encoding="utf-8")
|
||||
|
||||
assert "scheduler_stats" in shell
|
||||
assert "session.get('username')" in shell
|
||||
assert "next_run|default(None)" in shell
|
||||
assert "components/_ewoooc_shell.html" in base
|
||||
assert "'webcrumbs_config': {" in app_source
|
||||
assert "WEBCRUMBS_RUNTIME_URL" in config_source
|
||||
assert "data-webcrumbs-runtime" in base
|
||||
assert 'name="ui" value="v2"' not in base
|
||||
|
||||
forbidden_markers = [
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user