-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
describe.only() does not work when string is the same as another describe() block #5345
Closed
Labels
Comments
It's worth noting that Mocha itself used to have this issue (see mochajs/mocha#1834, fixed by mochajs/mocha#1807). |
Cypress uses a Mocha version 2.5.3, this is fixed in later versions. Going to close this as a duplicate of #2528 - which will be released in Cypress 4.0.0 release. |
jennifer-shehane
added
the
type: duplicate
This issue or pull request already exists
label
Oct 10, 2019
Wow, so Cypress is still on a version that's over three years old 😱 |
jennifer-shehane
added
stage: pending release
and removed
type: duplicate
This issue or pull request already exists
labels
Jan 29, 2020
Released in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior:
If you have multiple
describe
blocks with the same description string, marking one of them withdescribe.only
will run alldescribe
blocks with the same description instead of just the one with.only
:Desired behavior:
Marking a
describe
block with.only
should "only" run thatdescribe
block, not others with the same description.Steps to reproduce: (app code and test code)
Run the following spec:
Instead of just running one test with the description "works again", three tests are executed, in all three
describe('inner describe'...)
blocks.Versions
Cypress 3.4.1
Ubuntu 18.04
Chrome 77
The text was updated successfully, but these errors were encountered: