Skip to content

cy.within is failing in CI #17392

Answered by caseyjhol
caseyjhol asked this question in CI setup
Discussion options

You must be logged in to vote

After enabling junit reporting in cypress.json, I discovered that there is a TypeError being thrown that's not visible in the screenshots. There's an issue with the data in CI that isn't reproducible locally.

{
    // ...
    "reporter": "junit",
    "reporterOptions": {
        "mochaFile": "cypress-report-[hash].xml"
    }
}
TypeError: Cannot read property 'Black' of undefined
    at Context.eval (http://localhost:8080/__cypress/tests?p=cypress/integration/selection.spec.js:234:82)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by caseyjhol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant