Skip to content

cy.type does not fire beforeInput event / does not work with slate.js #7088

@nekolnyt

Description

@nekolnyt

Current behavior:

cy.type command does not fire beforeInput event.

The documentation https://docs.cypress.io/api/commands/type.html#Events says:

beforeinput is not fired even though it is in the spec because no browser has adopted it.

This statement is not true anymore and not firing the event makes it impossible to use Cypress for testing editor implemented with Slate.js.

Desired behavior:

cy.type does fire beforeInput event.

Test code to reproduce

https://github.com/nekolnyt/cypress-test-tiny-type-in-slate/blob/master/cypress/integration/spec.js

Versions

Cypress 4.4.0
OS: macOS Catalina 10.15.1
Browser: Chrome 81

Related issues

ianstormtaylor/slate#3476
#311 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions