question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisbreidingcommented, Aug 10, 2018

No, that’s definitely not expected. Looks like we didn’t take running all specs into account when implementing the new screenshot path rules. It’s a different issue than the original here, so I’m going to create a new GitHub issue for this.

1reaction
cangoektascommented, Aug 10, 2018

I’m on 3.0.3 and I’m still experiencing this issue.

When running cypress run this is what my screenshots folder looks like:

cypress/screenshots
├── home.spec.js
│   └── home.png
└── login.spec.js
    └── login.png

When running cypress open and clicking on “Run all specs”, an “All specs” folder is created:

cypress/screenshots
├── All\ Specs
│   ├── home.png
│   └── login.png
├── home.spec.js
│   └── home.png
└── login.spec.js
    └── login.png

Is this expected?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Where Screenshots Are Saved on Your Mac
* Press Command-Shift-5 to open the Screenshot app. * Select Options. * From the Save to section, select your preferred location. * If...
Read more >
How To Change Where Screenshots Are Saved On A Mac
How to change screenshot location on a Mac · Press Command + Shift + 5. · Click on Options. · Now either pick...
Read more >
Where are screenshots saved on Big Sur? - Apple Community
Look in your utilities folder for an app called screenshot. Launch the app and then at the bottom there are options that you...
Read more >
terminal - Change location of screenshots mac - Ask Different
Now use Cmd + Shift + 3 (eventually 4 ) shortcut, you will see your screenshots are saved in your new location.
Read more >
How to Change Where Screenshots are Saved on a Mac
Here you will see a variety of popular folders or apps you can save the screenshot to, including Documents, Clipboard, Mail, and Preview....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found