Comments (8)
I'm facing exactly the same problem. Please advise
from percy-cypress.
@antonyfuentes You're probably running the build with Gatsby develop. Percy does not support injecting CSS, you'd need to build the project and run cypress on the built server. Hope this helps!
from percy-cypress.
I am having the same Issue Percy seems not to load CSS, when running in a CI-Environment. Have you found a solution or a workaround?
from percy-cypress.
I am having the same Issue Percy seems not to load CSS, when running in a CI-Environment. Have you found a solution or a workaround?
Are you running Percy with a built version of your app?
from percy-cypress.
Are you running Percy with a built version of your app?
Our CI (Azure DevOps) builds the app, deploys it to a feature environment, run a parallel execution of cypress / percy tests against the feature environment. So yes but build is in a previous job (different job runner) and deployed too. Cypress is working fine but percy has issues. If I build it locally and execute percy against localhost, everything is fine...
from percy-cypress.
Facing same issues in the Screenshot comparison. Please see below for the details:
- Run the cypress code First time to get the original screenshot.
- Now re run the Cypress code with a different image comparison.
- The functionality works fine and it thus gives the error that "Snapshot does not match"
- Now when I click on the button
from percy-cypress.
@StapleMink did you find a solution? Im running into the same issue. Interestingly enough cy.screenshot();
which i have running after cy.percySnapshot();
produces the correct image. In the percy screenshot, however, im missing fonts and some inputs are misaligned.
Edit: Im running this on localhost
from percy-cypress.
Hey everyone! This can happen due to a number of reasons. Percy captures a snapshot of your applications DOM tree and then puts that into a browser to listen to the network requests it makes to save assets. From there those assets are sent off to the API to capture screenshots concurrently across browsers/widths.
Quick thoughts:
- If your app requires auth to access the assets, you will need to provide that (so asset discovery can request & save the assets) https://docs.percy.io/docs/capturing-assets-protected-with-authentication-cli
- If your app blocks based on UA/headless browsers
- Assets might be missed in the default timeout window (https://docs.percy.io/docs/cli-configuration#discovery
network-idle-timeout
). Anything above 600ms is a different issue - By default asset discovery only saves assets that have the same hostname as the app (for ex if you snapshot:
http://example.com
and have assets oncdn.example.com
, they won't be captured. Onlyexample.com
by default). https://docs.percy.io/docs/capturing-multiple-asset-hosts-cli
Or it could be a general issue with networking. Setting the --verbose
flag with @percy/cli
will log all asset discovery logs, look for errors/rejects in there.
Anything else, your best bet is to reach out to support to debug snapshots ([email protected]). 😃
from percy-cypress.
Related Issues (20)
- How to select Approved build as base build?
- Webpages behind Netlify Authentication not showing css in Percy snapshot
- [TypeScript] percySnapshot - TypeError: Cannot read properties of undefined (reading 'isTTY') HOT 19
- [Cypress regression]`TypeError: data.hasOwnProperty is not a function` HOT 12
- [percy] Fails to take dom snapshot
- Does percy with cypress support visual testing of shadow dom elements? HOT 1
- `cy.percySnapshot()` not uploading screenshots when used via `browserstack-cypress` HOT 1
- Percy does not work for Cypress component testing
- Cannot read properties of undefined (reading 'isServer') HOT 9
- SyntaxError: Unexpected identifier HOT 2
- Test is marked as successful, but `Could not take DOM snapshot` error is present.
- The term 'percy' is not recognized as the name of a cmdlet
- Duplicate snapshot name in a parallel build causes missing snapshots HOT 13
- Need the ability to set width and height for screenshots HOT 2
- Snapshot ignores the passed `scope` and renders the whole screen HOT 3
- Percy no longer captures embedded pdf viewer since Cypress v12.15.0 and above HOT 4
- Uncaught error was detected outside of a test: No commands were issued in this test HOT 3
- Specifying "width" instead of "widths" in percySnapshot HOT 4
- Cannot finalize before all snapshots have comparisons created HOT 2
- Images not captured by percy with cypress v13.6.4 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from percy-cypress.