Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No snapshot when using Cypress API #160

Closed
atmullan opened this issue Oct 22, 2019 · 2 comments
Closed

No snapshot when using Cypress API #160

atmullan opened this issue Oct 22, 2019 · 2 comments

Comments

@atmullan
Copy link

When using Percy and Cypress using the command line snapshots are created successfully i.e percy exec -- cypress open --env configFile=local
But for CI I using the Cypress API and the Cypress Tests are executed using a NodeJS script and within the script I using the syntax
const { totalFailed } = await cypress.run({
env: {
configFile: config,
password: crpassword,
key: crkey,
awsKey: awskey,
awsSecretKey: awsseckey
}
})

The name of the nodeJS script is cypress.js so I entered the following into the package.json but it fails to creates the snapshots, any ideas or pointers. Thanks

percy exec -t 350 -- node scripts/cypress.js

@Robdel12
Copy link
Contributor

Hey @atmullan could you reach out to us via intercom support or support@percy.io? I'd like to take a look at a build (if possible) and also if you could send along any logs that would be helpful 👍

@Robdel12
Copy link
Contributor

Robdel12 commented Oct 25, 2019

Not sure what the fix was, but I believe this was worked out (feel free to reopen if not!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants