Open RaviThippana opened 2 years ago
Your problems seems to be related to the url to the screenshot. If you look at the broken image url in the report, where is it pointing too? Where is it actually stored and is the url pointing to the correct location?
Also, I consider posting this issue in the mochawesome-screenshot issues page.
I am trying to add screen shot when test fail happens in playwright using Mochawesome-screenshots. Below is my snippet of .mocharc.js module.exports = { reporter: "mochawesome-screenshots", "reporter-option": [ "reportDir=Automation_Reports", "reportName=" + ReportCustomFolderName + "", "overwrite=true", "reportTitle=Automation Test Report", "shortScrFileNames=true", "takePassedScreenshot=false", "clearOldScreenshots= true", "screenshotsFolder=screenshots", ], }; But no screenshots are added in the screenshot folder. And my report is looking like below
I am using below versions.. "dependencies": { "mocha": "^10.0.0", "mochawesome-report-generator": "^6.2.0", "mochawesome-screenshots": "^1.7.3", "playwright": "^1.27.0", }, "devDependencies": { "mochawesome": "^7.1.3" }
Please advise. Thanks in advance