Skip to content

Error occurs only with cy.step (cypress open and run) #11

@adsguilherme

Description

@adsguilherme

"cypress": "12.2.0"
"cypress-plugin-steps": "^1.1.0"

image
image
image

Oops, it looks like you are trying to call a child command before running a parent command.

You wrote code that looks like this:

cy.step("Access admin page")

A child command must be chained after a parent because it operates on a previous subject.

For example - if we were issuing the child command click...

cy
.get('button') // parent command must come first
.click() // then child command comes second

Test steps were:

--- Start ---

##########################################################

New Test
Version cypress: 12.7.0

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions