Skip to content

screenshots saved in different folders when invoked from app vs. cli #2091

@phryneas

Description

@phryneas

Current behavior:

When using .screenshot() in a test from the command line with yarn cypress run -s cypress/integration/visual-regression/test-urls.js, screenshots are saved to cypress/screenshots/visual-regression/test-urls.js/.
When using the same test from the app (cypress open), the screenshots are saved to cypress/screenshots/integration/visual-regression/test-urls.js/

Desired behavior:

Screenshots are saved to the same folders, no matter how the test is invoked

Versions

3.0.2, I guess this is introduced with #1826 / #1858

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions