Skip to content

Add unsafe-to-chain-command exception for type and clear commands when used together #132

Closed as not planned
@fuxingloh

Description

@fuxingloh

According to the Cypress documentation on clear, it is considered a correct usage to chain the clear command with the type command, and vice versa:

cy.get('input[name="name"]').clear().type('Jane Lane')
cy.get('input[name="name"]').type('Jane Lane').clear()

As of v2.13.2, the current lint rule does not allow this usage.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions