Giter Club home page Giter Club logo

Comments (8)

antonyfuentes avatar antonyfuentes commented on June 14, 2024

I'm facing exactly the same problem. Please advise

from percy-cypress.

dbudziwojski avatar dbudziwojski commented on June 14, 2024

@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.

dimitri-rybak avatar dimitri-rybak commented on June 14, 2024

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.

dbudziwojski avatar dbudziwojski commented on June 14, 2024

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.

dimitri-rybak avatar dimitri-rybak commented on June 14, 2024

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.

AkashM-addweb avatar AkashM-addweb commented on June 14, 2024

Facing same issues in the Screenshot comparison. Please see below for the details:

  1. Run the cypress code First time to get the original screenshot.
  2. Now re run the Cypress code with a different image comparison.
  3. The functionality works fine and it thus gives the error that "Snapshot does not match"
  4. Now when I click on the button

from percy-cypress.

orrybaram avatar orrybaram commented on June 14, 2024

@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.

Robdel12 avatar Robdel12 commented on June 14, 2024

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:

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.