question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bad behavior since 2.4

See original GitHub issue

Hi

When I keep the 2.3.1 version all work fine.

I have some bad behavior since 2.4 (Tested with cypress from 4.4.1 until 4.8)

  • First case The tags is less respected : a .feature with two scenari and one tag by scenario. If I request only one tag, the two scenari was played.

  • Second case error message following

visit https://xxxxxxxx
get #_username
type xxxxxxxx
get #_password
get .form > .btn1 > [name="submit"]
click
form sub --submitting form--
page load --waiting for new page to load--
new url https://xxxxxxxxxxx
viewport 1366, 768
visit https://xxxxxxxxxx

then function(){}
    1) "after each" hook for "MyUsers manipulation (DM5)"


  0 passing (11s)
  1 pending
  1 failing

  1) DocumentManager MyUser right and Archive manipulations
       "after each" hook for "MyUsers manipulation (DM5)":
     CypressError: `cy.click()` failed because it requires a DOM element.

The subject received was:

  > `undefined`

The previous command that ran was:

  > `cy.get()`

Because this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `DocumentManager MyUser righ...`
      at ensureElement (https://www-/__cypress/runner/cypress_runner.js:155429:24)
      at validateType (https://www-/__cypress/runner/cypress_runner.js:155253:16)
      at Object.ensureSubjectByType (https://www-/__cypress/runner/cypress_runner.js:155295:11)
      at pushSubjectAndValidate (https://www-/__cypress/runner/cypress_runner.js:162959:15)
      at Context.<anonymous> (https://www-/__cypress/runner/cypress_runner.js:163287:18)
  From Your Spec Code:
      at Context.eval (https://www-/__cypress/tests?p=cypress/support/index.js:913:6)


image

Thanks for your help

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jvanoostveencommented, Jun 15, 2020

The issue with 2.3.1 is that it will only run the first scenario and not even notice there are more scenarios in Cypress 4.8. This seems to be fixed in 2.4 or 2.5, except it will crash on the scenario’s after the first. Maybe I should submit a new issue for this 😃.

0reactions
badeballcommented, Apr 10, 2022

Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I’m very excited about. Furthermore, I’d like to thank @lgandecki ++ for all the work that they’ve done so far.

Read more about the transfer of ownership here.

The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.4 Observing behaviour – Trauma Informed Behaviour Support
Always start with the behaviour first, then the antecedent and then the consequence.
Read more >
Avoidant Personality Disorder: Symptoms, Causes & Treatments
Avoidant personality disorder is marked by poor self-esteem and intense fear of rejection, possibly due to a combination of genetics and ...
Read more >
5 Common behavioral problems in preschoolers and what you ...
Another common cause for bad behavior is attention or the lack of it. Often, as parents, we tend to pay attention to our...
Read more >
Understanding Challenging Behavior: The Path to ... - YouTube
When young children exhibit persistent challenging behavior, there are impacts to daily routines and activities ... 2.4 K views 7 months ago.
Read more >
Research Update: Children's Anxiety and Depression on the ...
By 2020, 5.6 million kids (9.2%) had been diagnosed with anxiety problems and 2.4 million (4.0%) had been diagnosed with depression.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found