Frontmatter
| id | 7471 |
| title | Refactor: Implement Granular Playwright Test Configurations |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Oct 12, 2025, 4:06 PM |
| updatedAt | Oct 12, 2025, 4:10 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7471 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 7435 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 12, 2025, 4:10 PM |
Refactor: Implement Granular Playwright Test Configurations
tobiu assigned to @tobiu on Oct 12, 2025, 4:06 PM
tobiu added parent issue #7435 on Oct 12, 2025, 4:06 PM

tobiu
Oct 12, 2025, 4:10 PM
FYI @Aki-07 , @Mahita07 I think we are getting close with making the epic more accessible to others. These infrastructure items are rough, even with ai support. I had to push back on Gemini very hard, several times.
I will grab the button test next for a real migration and check how it works.
tobiu closed this issue on Oct 12, 2025, 4:10 PM
This task covers the architectural refactoring of the Playwright test setup to support multiple, independent test suites. The previous configuration was monolithic and would have led to conflicts between unit and component tests.
The following changes were implemented to create a robust and scalable testing structure:
Granular Config Files:
test/playwright/playwright.config.unit.mjswas created to exclusively run headless unit tests.test/playwright/playwright.config.component.mjswas created to exclusively run browser-based component tests, which require a web server.test/playwright/playwright.config.mjswas updated to serve as a master config that runs all test suites.Dedicated NPM Scripts:
package.jsonto provide clear entry points for developers and CI:npm run test-unit: Runs only unit tests.npm run test-components: Runs only component tests.npm test: Runs the full suite.Isolated Output Directories:
test/playwright/test-results/unit/test/playwright/test-results/component/test/playwright/test-results/all/This new structure provides a clear, conflict-free, and easy-to-use system for all Playwright-based testing.