Repository navigation
test(qa): deduplicate WhatsApp live transport fixtures - #117700
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 7:54 PM ET / 23:54 UTC. ClawSweeper reviewWhat this changesThe branch deduplicates WhatsApp QA live-transport test setup by consolidating fresh driver, gateway, observed-message, reaction, approval, and flow fixtures in the existing runtime test file. Merge readinessKeep this PR open for normal maintainer review. Its one-file QA refactor is not on current main, the Priority: P3 Review scores
Verification
How this fits togetherQA Lab runs WhatsApp scenarios against driver and Gateway test doubles, then checks observed messages, reactions, configuration patches, and flow behavior. This test module owns the orchestration fixtures that supply those scenario hooks and assertions. flowchart LR
A[WhatsApp scenario definitions] --> B[QA live runtime test]
B --> C[Fresh driver and Gateway fixtures]
C --> D[Scenario hooks]
D --> E[Observed-message and configuration assertions]
E --> F[QA regression coverage]
Decision needed
Why: The protected Before merge
Agent review detailsSecurityNone. PR surfaceTests -278. Total -278 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the local fixture helpers in this QA test module and merge the refactor only after a responsible maintainer accepts the preserved-regression evidence and the remaining required checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors existing QA fixtures rather than reporting a user-visible production failure. The relevant behavior is covered by the unchanged runtime test registrations and after-fix Testbox validation reported in the PR body. Is this the best way to solve the issue? Yes: keeping reusable fixtures local to the owning WhatsApp QA runtime test is the narrowest maintainable solution, and the helpers create fresh context and message state rather than adding a shared runtime abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6c41f37417ba. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Summary
Architectural owner
The QA Lab WhatsApp live-transport test owns scenario orchestration fixtures. The duplicated observed-message envelopes, Gateway setup, direct/group reaction harnesses, approval harnesses, and mock flow environments were consolidated inside that same test file; no runtime fallback, compatibility layer, or shared mutable fixture was added.
Exact preservation proof
expect(...)expressions: byte-identical.buildRuncalls, 46 scenario lookups, 26 mock-lane lookups, two fresh flow environments, 15 scenario contexts, and 34 driver-fixture constructions; every count matches the baseline.participant: "999@lid"; direct-message approvals retain explicitparticipant: undefined.[email protected]IMessageKey/participant/quote contracts inspected against the installed dependency.Validation
pnpm check:changed: passed.gpt-5.6-solxhigh source/dependency/owner-boundary review: clean.git diff --check: passed.origin/main: clean.