Comments (8)
Yes, this is happening when clicking 'run all tests' and having all specs run tests together.
I am not encountering this error when running the tests that are seeded in the Cypress project itself (added when you create a new project) - which are using the Kitchen-Sink version 1.0.1. This makes me believe that this bug was introduced in one of the commits on this project after May 14, 2018 https://github.com/cypress-io/cypress-example-kitchensink/commits/master
I'm quite confused why our automated tests would not have caught this though.
Can you confirm that you forked the repository and ran it on your own?
Cy Version: 3.0.1
Browser: Chrome 67 / Electron 59
OS: Mac
from cypress-example-kitchensink.
Oh, well, duh, they weren't caught because the specs are run in isolation within CI, not as if you had clicked 'run all tests'
from cypress-example-kitchensink.
I was able to narrow down the bug to these lines of code:
beforeEach(() => {
cy.visit('http://localhost:8080/commands/files')
})
it('.defaults() - change default config of server', () => {
Cypress.Server.defaults({
whitelist (xhr) {
expect(xhr).to.be.an('object')
},
})
})
it('cy.fixture() - load a fixture', () => {
cy.server()
cy.route('GET', 'comments/*').as('getComment')
cy.get('.fixture-btn').click()
cy.wait('@getComment')
})
from cypress-example-kitchensink.
The assertion below is failing, but failing in a later test - while trying to process the .wait()
command.
expect(xhr).to.be.an('object')
from cypress-example-kitchensink.
Ok, so we are going to remove the whitelist
sections of the Cypress.Server.default({})
.
This isn't really a good use case of how the whitelist feature should be used - ideally you would rewrite the function and not add an arbitrary assertion in here. Because of the way error handling is handled in this case, the error is being pushed off and being thrown on the .wait()
command. Which is why all of these waits are failing.
There does not appear to be an error in Cypress itself that we should open an issue for.
from cypress-example-kitchensink.
@jennifer-shehane to clarify, I haven't forked the repo, I just cloned it and ran the tests from the runner locally (if it makes any difference considering your previous replies).
from cypress-example-kitchensink.
Thanks @jennifer-shehane =)
from cypress-example-kitchensink.
Test summary
Run details
Project | cypress-example-kitchensink |
Status | Passed |
Commit | ab3954793a |
Started | Mar 15, 2020 12:10 PM |
Ended | Mar 15, 2020 12:17 PM |
Duration | 06:13 💡 |
OS | Windows 10.0.17763 |
Browser | Electron 78 |
View run in Cypress Dashboard ➡️
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard
from cypress-example-kitchensink.
Related Issues (20)
- Node.js 12 deprecation warning in semantic-pull-request HOT 9
- Azure pipeline fails for PRs in fork HOT 4
- Sync of GitLab mirror copy HOT 4
- Test Issue HOT 2
- example tests fail current recommended mocha lint HOT 4
- Azure DevOps CI stopped on April 3, 2023 HOT 3
- Parallel workflow fails HOT 2
- Several advanced examples fail cypress/unsafe-to-chain-command lint rule HOT 11
- Azure Pipelines example uses non-recommended code HOT 2
- GitHub Topics update HOT 4
- Outdated Heroku CI example HOT 4
- package.json `engines` lists Node.js 14 in end-of-life status HOT 5
- Installation deprecations caused by netlify-plugin-cypress HOT 2
- CircleCI checksum failure installing GoogleChrome in Windows with Chocolatey HOT 3
- CircleCI runs Windows tests under unsupported Node.js 14 - renovate fails HOT 5
- CircleCI wrong Node.js used for `linux-build` (v16.16.0) and `mac-build` (v18.16.0) HOT 1
- element selector: ":last" vs ":last-child" HOT 4
- IDE Shows false errors regards codebase under Ventura MacOS HOT 3
- Missing API commands HOT 3
- CircleCI fails to install the ChromeDriver HOT 1
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 cypress-example-kitchensink.