Skip to content

Cannot read property ‘ownerDocument’ of null on 'cy.click' in 3.5.0 #5430

@jennifer-shehane

Description

@jennifer-shehane

Current behavior:

Since 3.5.0, I am getting this error on .click().

Timed out retying: Cannot read property ‘ownerDocument’ of null

Screen Shot 2019-10-23 at 5 26 45 PM

Desired behavior:

Not throwing this error

Steps to reproduce: (app code and test code)

context('contact us modal', () => {
  before(() => {
    cy.visit('http://www.cypress.io/pricing')
  })

  it('opens modal on click of custom plan', () => {
    cy.contains('.call-modal', 'Get in touch').click()
    cy.get('.modal-body').should('be.visible')
  })

  it('form with proper class/script is in modal', () => {
    cy.contains('.call-modal', 'Get in touch').click()
  })
})

Versions

3.5.0

Metadata

Metadata

Assignees

Labels

type: regressionA bug that didn't appear until a specific Cy version releasev3.5.0 🐛Issue present since 3.5.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions