Skip to content

cypress/unsafe-to-chain-command errors being throw for wait with alias (v2.13.1) #127

Closed
@tgdevereux

Description

@tgdevereux

With the latest version of eslint-plugin-cypress, version 2.13.1, cypress/unsafe-to-chain-command lint errors appear to be getting thrown for wait commands that chain commands from it, when wait is given an alias argument.

Based on the Cypress docs here, it is unsafe to chain further commands that rely on the subject after .wait(), when given a time argument. However, it doesn't say it is unsafe when given an alias argument, as that would be used to wait and return a response from a request, for use in the test.

Based on the above, should the cypress/unsafe-to-chain-command not be getting applied to wait commands with alias arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions