-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
cy.route swallows the error about missing fixture #7818
cy.route swallows the error about missing fixture #7818
Comments
Thanks for the thorough write up! I read the blog and agree that this error should be better. |
…e does not exist
…e does not exist
…e does not exist
…e does not exist
…e does not exist - cy.route now tries to load a fixture before setting up the stub - cy.wait needed to be changed - onFixtureErrror now proper handles the error message
Full repro: it('fails with application error', () => {
cy.visit('https://example.cypress.io/commands/aliasing')
cy.server()
cy.route('GET', 'comments/*', 'fx:notExistingFixture').as('getComment')
cy.get('.network-btn').click()
cy.wait('@getComment').its('status').should('eq', 200)
})
it('fails correctly - fixutre not found', () => {
cy.fixture("notExistingFixture")
}) |
The code for this is done in cypress-io/cypress#7983, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When I use shortcut to load a fixture that doesn't exists
I get an error:
Provide a path to an existing fixture file.
The text was updated successfully, but these errors were encountered: