Replies: 3 comments 28 replies
-
FYI, here are my "run_settings": {
"cypress_config_file": "./cypress.json",
"project_name": "powderhouse.org",
"build_name": "0.01",
"exclude": [],
"parallels": "1",
"npm_dependencies": {
"@percy/cli": "^1.0.0-beta.76",
"@percy/cypress": "^3.1.1",
"browserslist": "^4.19.3",
"cypress": "^9.5.0"
},
"package_config_options": {},
"headless": true
},
"connection_settings": {
"local": false,
"local_identifier": null,
"local_mode": null,
"local_config_file": null
} |
Beta Was this translation helpful? Give feedback.
-
Hey @aresnick! This probably would be better off going to the browserstack-cypress-cli project. It looks like the tests are bundled and uploaded to a browserstack terminal. Percy's SDKs work by capturing & serializing the DOM from the test browser. Then that DOM is FWIW, it's not valuable to run Percy like this since we capture the DOM state and then rerender it across all the browsers. So if you're only running the tests for Percy, you could drop the browserstack-cypress-cli package. BUT that's only if this is just for Percy. I understand if you're wanting to run both the functional tests in different browsers and get Percy snapshots. But it might not be possible to achieve that. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The problem
I've successfully run tests with Cypress and Percy locally, and am now trying to use
browserstack-cypress-cli
to take screenshots via Percy.When I run a basic test using
cy.percySnapshot()
, no screenshot is delivered.NB: If this should be logged as an issue with
browserstack-cypress-cli
, let me know.Environment
node v14.18.1 (npm v8.3.0)
@percy/cli
version:@percy/cli 1.0.0-beta.76
@percy/cypress ^3.1.1
Windows 10
versions["latest", "latest-1"]
yarn run percy exec --verbose -- browserstack-cypress run --sync
Details
When I run my test command, the test completes (successfully appearing in Automate as well), but in Percy no snapshot seems to be uploaded, and although I pass the
--verbose
option, no logs seem to appear anywhere.Debug logs
These are the logs from my terminal when I run the test; I can't seem to locate any remote logs on Percy
On Automate, the logs don't indicate any issue:
Code to reproduce issue
Happy to create a repo if needed, but right now it's tied into our site setup and similar. Hopefully this is enough to work with?
Beta Was this translation helpful? Give feedback.
All reactions