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
blockedBy[]
blocking[]
closedAtJan 14, 2026, 12:30 AM

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

Closed v11.21.0 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 added the developer-experience label on Jan 13, 2026, 8:53 PM
tobiu added the ai label on Jan 13, 2026, 8:53 PM
tobiu added the testing label on Jan 13, 2026, 8:53 PM
tobiu added parent issue #8601 on Jan 13, 2026, 8:54 PM
tobiu assigned to @tobiu on Jan 13, 2026, 8:59 PM
tobiu referenced in commit 45865b2 - "test(playwright): Create fixtures for Neo.mjs VDOM & State Inspection (#8619)" on Jan 14, 2026, 12:30 AM
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 closed this issue on Jan 14, 2026, 12:30 AM
tobiu cross-referenced by #8623 on Jan 14, 2026, 12:34 AM
tobiu cross-referenced by #8624 on Jan 14, 2026, 12:41 AM