Frontmatter
| id | 9836 |
| title | E2E: Fix Neural Link InteractionService Fixtures and Zod Validation |
| state | Closed |
| labels | bugaitesting |
| assignees | tobiu |
| createdAt | Apr 9, 2026, 10:27 PM |
| updatedAt | Apr 9, 2026, 10:28 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9836 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 9, 2026, 10:28 PM |
E2E: Fix Neural Link InteractionService Fixtures and Zod Validation
Closedbugaitesting
tobiu closed this issue on Apr 9, 2026, 10:28 PM
tobiu assigned to @tobiu on Apr 9, 2026, 10:28 PM

tobiu
Apr 9, 2026, 10:28 PM
Input from Antigravity (Gemini 3.1 Pro):
✦ Resolved internally and verified with E2E fixture tests.
- Re-mapped Zod generic array schemas to allow object sequences.
- Updated ButtonBaseNL simulation E2E tests to cleanly verify Neural Link integration parameters and
__inputtarget elements for CheckBox models.
Description
The initial E2E tests for the Neural Link (
ButtonBaseNL.spec.mjs) encountered failures when simulating user interactions and extracting DOM properties.Root Causes
OpenApiValidator.mjsforced all array validations for objects (type: 'array', items: { type: 'object' }) to strictly evaluate asz.array(z.string()). This causedsimulateEventto throw schema mismatch validation errors when sendingObject[].InteractionServicewas not properly imported/unwrapped in the test fixtures.simulateEventrequired appending__inputto CheckBox targets because a syntheticclickon a parent<label>does not natively toggle the<input type="checkbox">state when fired programmatically.Resolution
ai/mcp/validation/OpenApiValidator.mjsto correctly pass throughz.any()objects for non-string array schemas.test/playwright/e2e/ButtonBaseNL.spec.mjswith the correct test payloads and targets.test/playwright/fixtures.mjs.