Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adsguilherme opened this issue Mar 7, 2023 · 4 comments
Open

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

adsguilherme opened this issue Mar 7, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@adsguilherme
Copy link

adsguilherme commented Mar 7, 2023

"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

@adsguilherme adsguilherme changed the title Error Cypress Open and Run Error occurs only with cy.step (cypress open and run) Mar 7, 2023
@JoavFernandes
Copy link

Also happening to me. Although it worked fine before adding cypress-allure to my dev dependencies

@at-akshat-2107
Copy link

I faced same issue!
and according to repo's example till now not specify which one is need chainable as a parent and child command.

Need brief example as I believe that adding examples that showcase the plugin's capabilities with a variety of URLs and devices would greatly improve its usability and help users better understand how to incorporate it into their testing workflows.

@filiphric
Copy link
Owner

I wasn’t able to replicate this issue. a reproducible repository would help a lot here. the thing I find odd in tall the information you provided is that it points to expect rather than to cy.section() it’s also odd that from the screenshot, both cy.step() and cy.section() were clearly executed (you can see them in timeline).

I think this might be some conflict between the plugin and some other plugin (?) but really hard to say.

investigating. any help appreciated

@filiphric
Copy link
Owner

I tried replicating with allure report plugin, no luck there either

@filiphric filiphric added the help wanted Extra attention is needed label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants