puppeteer/tools/mochaRunner/src
Alexandra Borovova 31ff55cc03
chore: filter expectations by the whole test or file name (#9503)
<!-- Thanks for submitting a pull request! Please provide enough
information so that others can review your pull request. -->

**What kind of change does this PR introduce?**

This is a change to a custom mocha runner to look for expectation of the
test case by the whole test name instead of by the part of the name.

**Summary**

Working on integration of the puppeteer expectation file in mozilla repo
and unskipping a lot of tests, I've noticed that some tests get wrong
statuses. For example, a test case with the name `navigation Page.goto
should fail when navigating to bad SSL` got the status of `navigation
Page.goto should fail when navigating to bad SSL after redirects` or
`ElementHandle specs ElementHandle.boundingBox should work` get the
status of `ElementHandle specs ElementHandle.boundingBox should work
with SVG nodes`. So it seems like checking for the whole name of the
test should be safer, but let me know if I'm missing something here.

**Does this PR introduce a breaking change?**
no
2023-01-13 16:14:37 +01:00
..
interface.ts chore: filter expectations by the whole test or file name (#9503) 2023-01-13 16:14:37 +01:00
main.ts chore: forward mocha arguments through the custom runner (#9502) 2023-01-13 09:51:59 +00:00
reporter.ts chore: refactor utils (#9053) 2022-10-06 10:27:14 +02:00
test.ts chore: refactor utils (#9053) 2022-10-06 10:27:14 +02:00
types.ts chore: refactor utils (#9053) 2022-10-06 10:27:14 +02:00
utils.ts chore: filter expectations by the whole test or file name (#9503) 2023-01-13 16:14:37 +01:00