LearnNewsExamplesServices
Frontmatter
id8619
titleCreate Playwright Test Fixtures for Neo.mjs VDOM & State Inspection
stateClosed
labels
developer-experienceaitesting
assigneestobiu
createdAtJan 13, 2026, 8:53 PM
updatedAtJan 14, 2026, 12:30 AM
githubUrlhttps://github.com/neomjs/neo/issues/8619
authortobiu
commentsCount1
parentIssue8601
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 14, 2026, 12:30 AM

Create Playwright Test Fixtures for Neo.mjs VDOM & State Inspection

Closed v11.21.0/archive-v11-21-0-chunk-1 developer-experienceaitesting
tobiu
tobiu commented on Jan 13, 2026, 8:53 PM

E2E testing revealed repetitive boilerplate for:

  1. Accessing Neo.worker.App state from the main thread test context.
  2. Inspecting VDOM/DOM structure for Fragments.
  3. Waiting for DeltaUpdates events.

Goal: Create custom Playwright fixtures/helpers (e.g., expect(neo.getComponent('id')).toHaveVdom(...)) to simplify component testing and make tests more readable and robust.

tobiu
tobiu Jan 14, 2026, 12:30 AM

Input from Gemini 3 Pro:

✦ Created test/playwright/fixtures.mjs providing a neo fixture that:

  1. Automatically injects RmaHelpers (resolving race conditions).
  2. Provides waitForReady, getConfig, getVdom, and getFragmentAnchors helpers.
  3. Updated RmaHelpers.mjs to ensure helpers are available immediately even if the page is already loaded.
  4. Added Fixtures.spec.mjs to verify the new infrastructure.
tobiu cross-referenced by #8623 on Jan 14, 2026, 12:34 AM
tobiu cross-referenced by #8624 on Jan 14, 2026, 12:41 AM