Comments (12)
@Robdel12 This appears to be related to percy: if I remove all the related code to percy, it works fine again in my case (on several projects). We do use TS as well, both TS 4.4 and TS 4.5.
from percy-cypress.
Just ran into the same issue. Note that it works with Cypress v9.0, but not with v9.1
from percy-cypress.
๐๐ผ I'm not at my computer to debug this yet but it feels like a red herring that there's nothing Percy related in that stack trace. Why is there bluebird in the stack trace (really old promise dep)? ๐คจ
I see "typescript": "4.5.2",
in your provided packag.json. Given the example app works fine with Cypress v9, I suspect this is actually a typescript + Cypress problem (and maybe + Percy too, there's also this annoying TS bug: #430)
from percy-cypress.
This sure does smell a lot like cypress-io/cypress#15101 & #325
from percy-cypress.
It does. I also had that issue in the past, but this was fixed and had not happened again since.
from percy-cypress.
FYI someone opened a similar issue on Cypress cypress-io/cypress#19091
from percy-cypress.
Also getting this issue after upgrade to 9.1.0, I have percy enabled.
from percy-cypress.
Downgrading to Cypress 9.0.0 Resolves the issue for me. Note: Not using Typescript
from percy-cypress.
We're seeing error this happen, but only in specs that have involve @percy/cypress
, and only as of Cypress 9.1.
from percy-cypress.
My guess is Cypress had a regression in their networking stack. Percy's SDK POST
's the DOM snapshot to local Percy server and this was an issue in Cypress in the past (with almost the exact same error message). People are reporting seeing the same issue without Percy and the stack trace doesn't have any Percy code in it.
Looks like we'll have to wait for Cypress to patch
from percy-cypress.
I added a comment to the Cypress issue, but this doesn't appear to be a Percy issue. Staying on v9.0.x will stay away from the issue (I believe) while this is looked at by the Cypress folks. Here's the comment I left on their issue:
I spent some time digging in to try and isolate & reproduce.
describe("Breaking reproduction", function () {
it("doesn't throw an error when making requests", function () {
cy.then(() =>
Cypress.backend("http:request", {
url: "http:localhost:8001/nothing/here",
method: "POST",
})
);
});
});
This will break with the same stack trace in the OP (https://github.com/percy/example-percy-cypress/runs/4400801282?check_suite_focus=true)
from percy-cypress.
Upgrading to v9.1.1 of cypress should solve this cypress-io/cypress#19091
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
- [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.