question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Percy not capturing any snapshots (fails to find healthcheck)

See original GitHub issue

Hi

I’m trying to integrate Percy and Cypress for one of my projects. Sadly Percy doesn’t seem to take any snapshots even though I’m calling cy.percySnapshot multiple times.

This is my current test:

describe('Magento tests', () => {
  beforeEach(() => {
    cy.visit(Cypress.env('staging-url'))
  })

  it('Should allow a product to be ordered', () => {
    cy.percySnapshot('Homepage')

    // Forcing due to sticky headers messing up the click area
    cy.get('nav.navigation > ul > li:first-of-type a')
        .click({ force: true })

    cy.percySnapshot('Category - Boxsprings')

    cy.get('.products.list.items.product-items')
        .find('li:first-of-type a.product-item-link')
        .click()

    cy.percySnapshot('Product page')
  })
})

This is my Cypress result: image

UPDATE: Seems like percy is unable to capture screenshots on https websites. Is this correct? This is quite a showstopper for the current project I’m integrating it for.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:41 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
amrwahdan3commented, Jul 17, 2019

thanks @Robdel12 ! that did the trick i see snapshots being taken and uploaded now after updating to 0.8.3

2reactions
tinganhocommented, Apr 21, 2021

Seems to work now. Just deleted node_modules and reinstalled everything. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Percy Snapshot
The Percy CLI snapshot command is the easiest way to start visual testing. With Percy, you can visually test virtually anything that runs...
Read more >
Debug a Flaky Visual Regression Test - Cypress
We have noticed that some visual tests were flaky - Percy was reporting an image difference at almost every run, while there were...
Read more >
Cypress.io: Visual testing with plugins and Percy.io - YouTube
This lesson is a part of my Udemy class: Cypress from Zero to Hero.Link to the class: ...
Read more >
@percy/cypress - npm Package Health Analysis | Snyk
If you're coming from 2.x the health check task, @percy/cypress/task , is no longer needed and no longer exists. You should remove this...
Read more >
Package Diff: @percy/cypress @ 1.0.4 .. 1.0.5
Percy server not available, or we failed to find the healthcheck. + var healthcheckCmd = "percy health-check -p " + percyAgentClient.port;.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found