feat(web): add iwooos pre-review checks
This commit is contained in:
@@ -369,6 +369,7 @@ def validate(root: Path) -> None:
|
||||
"s2_115_iwooos_first_unlock_evidence_packet",
|
||||
"s2_116_iwooos_first_unlock_evidence_packet_preflight_outcomes",
|
||||
"s2_117_iwooos_first_unlock_evidence_packet_supplement_path",
|
||||
"s2_118_iwooos_first_unlock_evidence_packet_supplement_pre_review",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -678,6 +679,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_iwooos_first_unlock_evidence_packet_supplement_path",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_iwooos_first_unlock_evidence_packet_supplement_pre_review",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
@@ -8909,6 +8915,96 @@ def validate(root: Path) -> None:
|
||||
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPath"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.first_unlock_evidence_packet_supplement_pre_review_testid",
|
||||
iwooos_projection_page,
|
||||
'data-testid="iwooos-first-unlock-evidence-packet-supplement-pre-review-board"',
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.first_unlock_evidence_packet_supplement_pre_review_component",
|
||||
iwooos_projection_page,
|
||||
"IwoooSFirstUnlockEvidencePacketSupplementPreReviewBoard",
|
||||
)
|
||||
for text in [
|
||||
"iwooos_first_unlock_evidence_packet_supplement_pre_review_check_count=6",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_pre_review_current_focus=supplement_pre_review",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_pre_review_passed_count=0",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_pre_review_failed_count=0",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_pre_review_ready_for_review_count=0",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_pre_review_queue_open=false",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_request_sent=false",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_submitted_count=0",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_accepted_count=0",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_raw_payload_allowed=false",
|
||||
"iwooos_first_unlock_evidence_packet_supplement_secret_value_allowed=false",
|
||||
"iwooos_first_unlock_evidence_packet_headline_review_authorized=false",
|
||||
"iwooos_first_unlock_evidence_packet_runtime_gate_opened=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.first_unlock_evidence_packet_supplement_pre_review_boundary",
|
||||
iwooos_projection_page,
|
||||
text,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPreReview",
|
||||
list(web_messages_zh["iwooos"].keys()),
|
||||
"firstUnlockEvidencePacketSupplementPreReview",
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPreReview",
|
||||
list(web_messages_en["iwooos"].keys()),
|
||||
"firstUnlockEvidencePacketSupplementPreReview",
|
||||
)
|
||||
for key in ["title", "subtitle", "summary", "items", "checkLabel", "boundaryTitle", "boundaryIntro"]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPreReview.keys",
|
||||
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketSupplementPreReview"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPreReview.keys",
|
||||
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPreReview"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in ["checks", "passed", "ready", "queue"]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPreReview.summary",
|
||||
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketSupplementPreReview"]["summary"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPreReview.summary",
|
||||
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPreReview"]["summary"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in [
|
||||
"ownerMetadataComplete",
|
||||
"scopeRefsTraceable",
|
||||
"redactionAttested",
|
||||
"preflightTraceAttached",
|
||||
"noMutationClauseHeld",
|
||||
"reviewerQueueReady",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPreReview.items",
|
||||
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketSupplementPreReview"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPreReview.items",
|
||||
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPreReview"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
|
||||
Reference in New Issue
Block a user