Frontmatter
| id | 7256 |
| title | Refactor Playwright Setup Function for Test-Specific Configurations |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Sep 26, 2025, 12:29 AM |
| updatedAt | Sep 26, 2025, 12:30 AM |
| githubUrl | https://github.com/neomjs/neo/issues/7256 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 7262 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 26, 2025, 12:30 AM |
Refactored the Playwright
setup.mjsfile 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
test/playwright/setup.mjsto export asetupfunction that accepts anoptionsobject forneoConfigandappConfig.test/playwright/classic/button.spec.mjsto import and call thesetupfunction with its specific configuration, includingappName.