LearnNewsExamplesConnect
Frontmatter
assigneestobiu
createdAtOct 12, 2025, 2:56 PM
updatedAtOct 12, 2025, 2:59 PM
githubUrlhttps://github.com/neomjs/neo/issues/7469
authortobiu
commentsCount1
parentIssue7435
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 12, 2025, 2:59 PM

Refactor: Consolidate and Refine Playwright Test Harness

tobiu
tobiu commented on Oct 12, 2025, 2:56 PM

This task covers the architectural refactoring and consolidation of the Playwright component test harness. After the initial implementation of the "empty viewport" app, we identified several key improvements to create a more logical and scalable structure for our new testing suite.

Key Changes Implemented:

  1. Consolidated Directory Structure: The test harness application was moved from test/apps/ to a dedicated, co-located home at test/playwright/component/apps/empty-viewport/. This ensures all Playwright-related artifacts reside in a single, intuitive location.
  2. Architectural Simplification: The harness was simplified by removing the unnecessary EmptyViewport.mjs subclass and using the framework's base Neo.container.Viewport directly.
  3. Configuration Cleanup: The neo-config.json for the harness was cleaned up to remove redundant settings and rely on the framework's defaults from src/DefaultConfig.mjs.
  4. Strategy Documentation: The main epic (epic-migrate-component-tests-to-playwright.md) was updated to reflect these structural changes and to formally document the new hybrid testing strategy for complex components.
tobiu
tobiu Oct 12, 2025, 2:59 PM

FYI @Aki-07. I will create 1-2 PoC tests next. also updated the epic to at least mention the hybrid strategy.