feat(web): 新增 iwooos 證據接線預檢
This commit is contained in:
@@ -382,6 +382,7 @@ def validate(root: Path) -> None:
|
||||
"s2_128_iwooos_product_rollout_acceptance_gates",
|
||||
"s2_129_iwooos_product_rollout_acceptance_outcomes",
|
||||
"s2_130_iwooos_product_evidence_wiring_map",
|
||||
"s2_131_iwooos_product_evidence_wiring_preflight",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -756,6 +757,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_iwooos_product_evidence_wiring_map",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_iwooos_product_evidence_wiring_preflight",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
@@ -9447,6 +9453,114 @@ def validate(root: Path) -> None:
|
||||
list(web_messages_en["iwooos"]["productEvidenceWiringMap"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.product_evidence_wiring_preflight_testid",
|
||||
iwooos_projection_page,
|
||||
'data-testid="iwooos-product-evidence-wiring-preflight-board"',
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.product_evidence_wiring_preflight_component",
|
||||
iwooos_projection_page,
|
||||
"IwoooSProductEvidenceWiringPreflightBoard",
|
||||
)
|
||||
for text in [
|
||||
"iwooos_product_evidence_wiring_preflight_check_count=6",
|
||||
"iwooos_product_evidence_wiring_preflight_current_stage=read_only_evidence_wiring_preflight",
|
||||
"iwooos_product_evidence_wiring_preflight_visible_check_count=6",
|
||||
"iwooos_product_evidence_wiring_preflight_passed_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_failed_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_ready_for_connection_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_returned_for_scope_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_quarantined_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_owner_response_accepted_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_redacted_evidence_pointer_accepted_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_source_control_truth_accepted_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_host_safety_window_approved=false",
|
||||
"iwooos_product_evidence_wiring_preflight_monitoring_tool_payload_ingested=false",
|
||||
"iwooos_product_evidence_wiring_preflight_ready_for_human_review_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_ready_for_runtime_count=0",
|
||||
"iwooos_product_evidence_wiring_preflight_runtime_gate_open=false",
|
||||
"iwooos_product_evidence_wiring_preflight_public_secret_exposure_allowed=false",
|
||||
"iwooos_product_evidence_wiring_preflight_kali_execution_authorized=false",
|
||||
"iwooos_product_evidence_wiring_preflight_source_control_mutation_authorized=false",
|
||||
"runtime_execution_authorized=false",
|
||||
"active_runtime_gate_count=0",
|
||||
"action_buttons_allowed=false",
|
||||
"not_authorization=true",
|
||||
"secret_value_collection_allowed=false",
|
||||
"repo_creation_authorized=false",
|
||||
"refs_sync_authorized=false",
|
||||
"workflow_modification_authorized=false",
|
||||
"github_primary_switch_authorized=false",
|
||||
"gitea_disablement_authorized=false",
|
||||
]:
|
||||
assert_text_contains(
|
||||
"iwooos_page.product_evidence_wiring_preflight_boundary",
|
||||
iwooos_projection_page,
|
||||
text,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.productEvidenceWiringPreflight",
|
||||
list(web_messages_zh["iwooos"].keys()),
|
||||
"productEvidenceWiringPreflight",
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.productEvidenceWiringPreflight",
|
||||
list(web_messages_en["iwooos"].keys()),
|
||||
"productEvidenceWiringPreflight",
|
||||
)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
"summary",
|
||||
"items",
|
||||
"checkLabel",
|
||||
"checkPointLabel",
|
||||
"passSignalLabel",
|
||||
"failRouteLabel",
|
||||
"stillClosedLabel",
|
||||
"boundaryTitle",
|
||||
"boundaryIntro",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.productEvidenceWiringPreflight.keys",
|
||||
list(web_messages_zh["iwooos"]["productEvidenceWiringPreflight"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.productEvidenceWiringPreflight.keys",
|
||||
list(web_messages_en["iwooos"]["productEvidenceWiringPreflight"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in ["checks", "passed", "quarantine", "runtime"]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.productEvidenceWiringPreflight.summary",
|
||||
list(web_messages_zh["iwooos"]["productEvidenceWiringPreflight"]["summary"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.productEvidenceWiringPreflight.summary",
|
||||
list(web_messages_en["iwooos"]["productEvidenceWiringPreflight"]["summary"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in [
|
||||
"scopeMetadata",
|
||||
"ownerEnvelope",
|
||||
"redactionBoundary",
|
||||
"sourceTruth",
|
||||
"hostWindow",
|
||||
"toolOutput",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.productEvidenceWiringPreflight.items",
|
||||
list(web_messages_zh["iwooos"]["productEvidenceWiringPreflight"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.productEvidenceWiringPreflight.items",
|
||||
list(web_messages_en["iwooos"]["productEvidenceWiringPreflight"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.first_progress_unlock_path_testid",
|
||||
iwooos_projection_page,
|
||||
|
||||
Reference in New Issue
Block a user