playwright-ctrf-json-report icon indicating copy to clipboard operation
playwright-ctrf-json-report copied to clipboard

Issue with Report Directory Permissions

Open terius7 opened this issue 1 year ago • 2 comments

Hi,

I have added the reporter to the playwright.config.ts file as follows:

reporter: [['playwright-dtrf-json-reporter', { outputDir: '/microsite/ctrf-report' }]]

However, I am encountering the following error:

Error in reporter: Error: EACCES: permission denied, mkdir '/microsite/ctrf-report'
at Object.mkdirSync (node:fs:1363:26)
at GenerateCtrfReport.onBegin

It seems that the output directory should be combined with the working-directory, but I am not sure how to resolve this issue.

Thank you!

terius7 avatar Dec 08 '24 21:12 terius7

Hi, Does using a relative path like this meet your requirements?

reporter: [['playwright-dtrf-json-reporter', { outputDir: 'microsite/ctrf-report' }]]

In the meantime, I'll work on improving how absolute paths are handled

Ma11hewThomas avatar Dec 08 '24 22:12 Ma11hewThomas

Hi,

It should be defined similarly to how we do it in the other Playwright reporter.

terius7 avatar Dec 09 '24 17:12 terius7