fix(regulatory): 修复条件确认实时轮询和重复提示
This commit is contained in:
@@ -163,3 +163,20 @@ def test_frontend_selects_status_url_by_workflow_type():
|
||||
assert "condition_confirmation" in script
|
||||
assert "bindRectificationActionButtons" in script
|
||||
assert "data-rectification-action" in script
|
||||
|
||||
|
||||
def test_frontend_polls_regulatory_workflow_with_explicit_workflow_type():
|
||||
script = open("static/js/app.js", encoding="utf-8").read()
|
||||
|
||||
assert "function startWorkflowPolling(batchId, workflow_type)" in script
|
||||
assert "startWorkflowPolling(payload.batch_id, payload.workflow_type)" in script
|
||||
assert 'startWorkflowPolling(batchId, "regulatory_review")' in script
|
||||
assert 'workflow_type || (card ? card.getAttribute("data-workflow-type") || "file_summary" : "file_summary")' in script
|
||||
|
||||
|
||||
def test_frontend_keeps_single_condition_confirmation_prompt():
|
||||
script = open("static/js/app.js", encoding="utf-8").read()
|
||||
|
||||
assert "data-condition-confirmation-card" in script
|
||||
assert "removeStaleConditionConfirmationCards" in script
|
||||
assert '[data-condition-confirmation-card]' in script
|
||||
|
||||
Reference in New Issue
Block a user