You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
screenshots not coming with unique name from 3.7.0 #5065
I am using codeceptjs 3.7.3 with Playwright along with mochawesome
While getting screenshot(default) at the failure, it takes the screenshot and name it with scenario name.failed.png. But I am using data table to execute the same scenario with multiple states. while there are many failures, screenshots come with same name and gets replaced.
When executing same scenario for 10 different states using datatable and if 8 of them failed, I get only one screen shot because of the same name. Is there any workaround or fix for this?
Activity
mirao commentedon Aug 14, 2025
#4959
It should be fixed in a next version. I'm using 3.7.3 with a patch from that PR (patched in my environment).
JoeAnantham commentedon Aug 14, 2025
Thanks for the update.
JoeAnantham commentedon Sep 2, 2025
@mirao , Does it need any change in config. I tried using 3.7.4 but still I am not getting unique screen shots.
mirao commentedon Sep 3, 2025
https://codecept.io/plugins/#screenshotonfailcreates-screenshot-on-failure-screenshot-is-saved-into-output-directory
uniqueScreenshotNames: trueworks for me