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

✨ Disable Percy when Cypress is in interactive mode #321

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented Apr 14, 2021

Purpose

Percy is designed (at this time) to run in CI, with one complete test run to each build. Running Percy when doing TDD style tests (or anything watching changes like cypress open) will result in duplicate snapshot errors/unexpected results.

On top of that, a recent bug in the Cypress networking layer (likely cypress-io/cypress#15101) causes any tests that call cy.percySnapshot to hang/break (since we make a network request, which eventually causes that callstack error in Cypress).

Approach

Since Percy's workflow is already misaligned with using cypress open, we're going to disable Percy from running / making network calls in Cypress Interactive mode. This could result in empty builds, which will eventually be handled upstream in @percy/core when we implement a lazy snapshot queue.

Will close #315

@Robdel12 Robdel12 requested a review from wwilsman April 14, 2021 16:27
@Robdel12 Robdel12 added the ✨ enhancement New feature or request label Apr 14, 2021
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
cypress/integration/index.test.js Outdated Show resolved Hide resolved
cypress/integration/index.test.js Outdated Show resolved Hide resolved
Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎮

@Robdel12 Robdel12 merged commit 00991d5 into master Apr 14, 2021
@Robdel12 Robdel12 deleted the rd/disable-interactive branch April 14, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Percy server fails to respond with Cypress open
2 participants