LearnNewsExamplesServices
Frontmatter
id7256
titleRefactor Playwright Setup Function for Test-Specific Configurations
stateClosed
labels
enhancement
assigneestobiu
createdAtSep 26, 2025, 12:29 AM
updatedAtSep 26, 2025, 12:30 AM
githubUrlhttps://github.com/neomjs/neo/issues/7256
authortobiu
commentsCount0
parentIssue7262
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 26, 2025, 12:30 AM

Refactor Playwright Setup Function for Test-Specific Configurations

Closed v11.0.0 enhancement
tobiu
tobiu commented on Sep 26, 2025, 12:29 AM

Refactored the Playwright setup.mjs file to export a configurable function, allowing individual test files to define their specific Neo.mjs global environment. This enables flexible test-specific configurations without conflicts in Playwright's parallel execution model.

Changes

  • Modified test/playwright/setup.mjs to export a setup function that accepts an options object for neoConfig and appConfig.
  • Updated test/playwright/classic/button.spec.mjs to import and call the setup function with its specific configuration, including appName.
tobiu assigned to @tobiu on Sep 26, 2025, 12:29 AM
tobiu added the enhancement label on Sep 26, 2025, 12:29 AM
tobiu referenced in commit 7f26c3d - "Refactor Playwright Setup Function for Test-Specific Configurations #7256" on Sep 26, 2025, 12:30 AM
tobiu closed this issue on Sep 26, 2025, 12:30 AM
tobiu added parent issue #7262 on Sep 27, 2025, 1:16 PM