-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area: browserbrowser-specificbrowser-specificstatus: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer
Description
Bug Report Checklist
- I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- I have searched for related issues and issues with the
faq
label, but none matched my issue. - I have 'smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, my usage of Mocha, or Mocha itself.
- I want to provide a PR to resolve this
Expected
- Click on the link for
Case1
=> should run only the testCase1 test1
- Click on the link for
CSS
=> should run only the testCSS
Actual
- Click on the link for
Case1
=>Case1 test1
andCase10 test1
are run - Click on the link for
CSS
=>CSS
andshould fix invalid CSS
are run
Minimal, Reproducible Example
Create a web page with following tests:
describe('Case1', function () {
it('test1', function () {
/* do something */
});
});
describe('Case10', function () {
it('test1', function () {
/* do something */
});
});
it('CSS', function () {
/* do something */
});
it('should fix invalid CSS', function () {
/* do something */
});
- Click on the link for
Case1
. - Click on the link for
CSS
.
Versions
mocha 10.7.3
Additional Info
No response
Metadata
Metadata
Assignees
Labels
area: browserbrowser-specificbrowser-specificstatus: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer