[X] 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
A link of the browser reporter should remove fgrep and invert parameters in the original URL.
Actual
A link of the browser reporter keeps the original fgrep and invert parameters in the original URL.
Minimal, Reproducible Example
Create a test page like:
<!DOCTYPE html>
<meta charset="UTF-8">
<link rel="stylesheet" href="mocha.css">
<div id="mocha"></div>
<script src="mocha.js"></script>
<script>
mocha.setup('bdd');
describe('tests', function () {
it('test1', function () {});
it('test2', function () {});
});
mocha.run();
</script>
Open the page in the browser.
Append ?fgrep=tests in the address and visit it.
Wait for the test to complete, and click the replay link of test1.
Bug Report Checklist
faq
label, but none matched my issue.Expected
A link of the browser reporter should remove
fgrep
andinvert
parameters in the original URL.Actual
A link of the browser reporter keeps the original
fgrep
andinvert
parameters in the original URL.Minimal, Reproducible Example
Open the page in the browser.
Append
?fgrep=tests
in the address and visit it.Wait for the test to complete, and click the replay link of
test1
.Versions
mocha@10.3.0 in javascript ES2018
Additional Info
No response