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
If do Angular component testing:
For the same spec, Screenshots are generated in different folders with below 2 commands
npx cypress run --component --browser chromium
npx cypress run --component --browser chromium --spec
This issue does not occur if do React component testing
Desired behavior
If do Angular component testing:
For the same spec, Screenshots should be generated in SAME folders with below 2 commands
npx cypress run --component --browser chromium
npx cypress run --component --browser chromium --spec
Test code to reproduce
Angular component testing
npx cypress run --component --browser chromium
npx cypress run --component --browser chromium --spec "XX"
Cypress Version
10.9
Node version
v12.20.0
Operating System
12.6
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered:
We experience same issue with Cypress 10.7. and Node 16.17
When running tests using --spec parameter the screenshots are being generated like this -> screenshots-folder/spec-file-name/screenshot-name
When running tests without --spec parameter then the folder structure reflects the folder structure for tests themself -> screenshots-folder/sub-folder-1/sub-folder-2/spec-file-name/screenshot-name
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
I would like to reopen this issue which is very problematic for include screenshots to a mochawesome report.
Btw, the problem is not due to Angular / React as the author suggests but it depends on the spec folder hierarchy, and how much spec you are testing with npm run.
npm run cypress
npm run cypress --spec folder1/*
npm run cypress -- spec folder1/folder1-1/*
will lead to 3 differents path for the same screenshots
nagash77
added
CT
Issue related to component testing
and removed
stale
no activity on this issue for a long period
labels
May 31, 2023
Current behavior
If do Angular component testing:
For the same spec, Screenshots are generated in different folders with below 2 commands
npx cypress run --component --browser chromium
npx cypress run --component --browser chromium --spec
This issue does not occur if do React component testing
Desired behavior
If do Angular component testing:
For the same spec, Screenshots should be generated in SAME folders with below 2 commands
npx cypress run --component --browser chromium
npx cypress run --component --browser chromium --spec
Test code to reproduce
Angular component testing
npx cypress run --component --browser chromium
npx cypress run --component --browser chromium --spec "XX"
Cypress Version
10.9
Node version
v12.20.0
Operating System
12.6
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: