LearnNewsExamplesServices
Frontmatter
id7260
titleCorrect Playwright Output Directory
stateClosed
labels
enhancement
assigneestobiu
createdAtSep 26, 2025, 4:09 PM
updatedAtSep 26, 2025, 4:10 PM
githubUrlhttps://github.com/neomjs/neo/issues/7260
authortobiu
commentsCount0
parentIssue7262
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 26, 2025, 4:10 PM

Correct Playwright Output Directory

Closed v11.0.0 enhancement
tobiu
tobiu commented on Sep 26, 2025, 4:09 PM

The Playwright test runner was incorrectly creating a test-results directory at the project root, instead of within the test/playwright directory as intended.

Resolution

  1. The playwright.config.mjs file was modified to use absolute paths for testDir and outputDir. This was achieved by using Node.js's path and url modules to ensure the paths are always resolved correctly, regardless of the directory from which the test command is run.
  2. The test script in package.json was updated to explicitly specify the path to the configuration file using the -c flag (playwright test -c test/playwright/playwright.config.mjs).

This combination ensures that all test artifacts are consistently and correctly placed in test/playwright/test-results.

tobiu assigned to @tobiu on Sep 26, 2025, 4:09 PM
tobiu added the enhancement label on Sep 26, 2025, 4:09 PM
tobiu referenced in commit ff35fc5 - "Correct Playwright Output Directory #7260" on Sep 26, 2025, 4:10 PM
tobiu closed this issue on Sep 26, 2025, 4:10 PM
tobiu added parent issue #7262 on Sep 27, 2025, 1:16 PM