Skip to content

screenshots not coming with unique name from 3.7.0 #5065

Closed

Description

@JoeAnantham

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

  1. mirao commented on Aug 14, 2025

    @mirao
    Contributor

    #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).

  2. JoeAnantham commented on Aug 14, 2025

    @JoeAnantham
    Author

    Thanks for the update.

  3. JoeAnantham commented on Sep 2, 2025

    @JoeAnantham
    Author

    @mirao , Does it need any change in config. I tried using 3.7.4 but still I am not getting unique screen shots.

  4. mirao commented on Sep 3, 2025

    @mirao
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions