Skip to content
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

Testing Library can fails with a cryptic error rather than the expected error in Cy 14 Prerelease #30848

Open
cacieprins opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
Cypress 14 Issues scoped for Cypress 14 type: bug

Comments

@cacieprins
Copy link
Contributor

Current behavior

With:

    "@testing-library/cypress": "^10.0.1",

The command fails with a TypeError: Cannot set property message of which has only a getter, rather than the load event not firing

Desired behavior

No response

Test code to reproduce

it(`Verify that items under category News are visible, intentionally will fail`, () => {
    cy.visit("https://ca.yahoo.com/")

    cy.findByRole("link", {name: 'News'})
        .should("be.visible")
        .click({force: true})

    cy.scrollTo("bottom")
})

Cypress Version

14.0.0

Node version

20.18

Operating System

Darwin x64

Debug Logs

Other

Image

@cacieprins cacieprins added the Cypress 14 Issues scoped for Cypress 14 label Jan 9, 2025
@AtofStryker AtofStryker self-assigned this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cypress 14 Issues scoped for Cypress 14 type: bug
Projects
None yet
Development

No branches or pull requests

3 participants