You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regression in 9.5.0. Errors are not flowing into the codeframe correctly.
Desired behavior
Errors should display correctly.
Test code to reproduce
it('tries to import an unnexisting fixture', () => {
cy.fixture('test')
/**
* v9.4.1
* A fixture file could not be found at any of the following paths:
*
* > cypress/fixtures/test
* > cypress/fixtures/test{{extension}}
*
* Cypress looked for these file extensions at the provided path:
*
* > .json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip
*
* Provide a path to an existing fixture file.
*/
/**
* v9.5.0
* A fixture file could not be found at any of the following paths:
*
* [90m > [39m [94mcypress/fixtures/test [39m
* [90m > [39m [94mcypress/fixtures/test [39m.[ext]
*
* Cypress looked for these file extensions at the provided path:
*
* [90m > [39m [94.json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip[39m
*
* Provide a path to an existing fixture file.
*/
})
it('incorrectly uses aliased element (missing @ sign)', () => {
cy.get('[data-testid="cart-size"]')
.as('cartSize')
cy.get('cartSize').should('contain', '0')
// v9.4.1
// Expected to find element: cartSize, but never found it.
// v9.5.0
// Expected to find element: [data-test-id="add-item-button"], but never found it.
})
Cypress Version
9.5.0
Other
No response
The text was updated successfully, but these errors were encountered:
Yeah this was/is an unintended regression. I'll make sure ANSI is stripped and looked into why the @alias failure isn't generating the same message - although I can't imagine how that could be related to the same PR as what's causing the ANSI terminal codes to unintentionally show up in the errors.
Current behavior
Regression in 9.5.0. Errors are not flowing into the codeframe correctly.
Desired behavior
Errors should display correctly.
Test code to reproduce
Cypress Version
9.5.0
Other
No response
The text was updated successfully, but these errors were encountered: