feat(in-transit-transfer): 自动调拨联动收料就绪并分层来源错误
- 调度整合:退役 in_transit_receipt_file_job,收料归档收敛 shipping_receipt_rpa_archive,排程注册表统一 - 自动调拨 Job:调拨前确保各来源当日收料文件就绪(缺失自动触发收料 RPA),严格等量匹配后生成 ERP 调拨单 - worker 手动唤醒:排程工作台支持手动唤醒与 runs 透视,heartbeat 协议同步 - 收料缺失幸存 T2:parse_failed 状态落库(迁移 q4c5) - 来源错误分层与 stale 时钟换源:改挂 inventory_checked_at 库存查得时刻,展示阈值与执行门禁解耦(迁移 t5a6) - 新增 wecom_sender 企微通知:每非空 Run 汇总一条,通知失败不影响 ERP 结果 - 同步排程工作台/调拨卡片前端、chat/admin 文案四语言、RPA 脚本与测试全家
This commit is contained in:
1 parent
993e581135
commit
abf3d48927
144 files changed
+10161
-2132
No files matched your search
@@ -2614,6 +2614,28 @@ def test_get_dsv_report_result_state_keeps_waiting_when_loading_overlay_and_head
|
||||
assert state["bodyScore"] == 4
|
||||
|
||||
|
||||
def test_dsv_async_wait_uses_visible_reportviewer_overlay_not_body_loading_text():
|
||||
"""
|
||||
View Report 后的 asyncWait 必须认可见 #ReportViewerMain_AsyncWait,禁止 body 扫 loading。
|
||||
|
||||
[断言意图] 日历 iframe 隐藏 Loading 文案会假阳性拖满超时;契约锁死为遮罩可见性。
|
||||
"""
|
||||
text = (
|
||||
Path(__file__).resolve().parents[2]
|
||||
/ "scripts"
|
||||
/ "freight_rpa"
|
||||
/ "connectors"
|
||||
/ "dsv"
|
||||
/ "dsv_report_export.py"
|
||||
).read_text(encoding="utf-8")
|
||||
assert "#ReportViewerMain_AsyncWait" in text
|
||||
assert "WaitControlBackground" in text
|
||||
assert "visible(asyncWaitNode)" in text
|
||||
# 旧逻辑:正文 token 列表判定 asyncWait(会误伤隐藏 Loading)
|
||||
assert "'please wait',\n 'generating'," not in text
|
||||
assert "normalizedBody.includes(token));\n const asyncWait" not in text
|
||||
|
||||
|
||||
@pytest.mark.rpa_e2e
|
||||
def test_inventory_export_trigger_2edadc77_downloads_real_file(monkeypatch, tmp_path):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user