playwright/tests/playwright-test
Ross Wollman 06c7f1fb6c
fix(html): test and fix reporter timing display (#19670)
#19576 introduced a regression where the CLI reporters displayed some
times with way too many decimals. e.g. 7.123456789ms.

Prior to #19576, there were two monotonicTime implementations; that PR
updated the reporters to use the common definition that had existed in
utils.ts. However, that introduced a regression in the base.ts reporters
which used the ms duration humanizing package which did not account for
the more precise decimals used by the shared monotonicTime function.

This fix removes the dependency on the third-party ms package and now
consistently uses Pavel's humanize function which the HTML reporter had
been using and proved to have better defaults for decimals.
Additionally, we add more test coverage to limit future regressions
since this was caught in passing.

Closes #19556.
Relates #19576.
2022-12-22 15:57:55 -08:00
..
__screenshots__/playwright.artifacts.spec.ts feat: allow options in automatic screenshots (#19143) 2022-12-07 08:45:33 -08:00
assets Revert "feat: send SIGTERM to webserver before SIGKILL'ing it. (#18220)" (#18661) 2022-11-09 09:18:33 -08:00
stable-test-runner chore: roll stable-test-runner to 1.28.1 (#19310) 2022-12-06 15:46:19 -08:00
access-data.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
babel.spec.ts feat(ct): support cra w/ .js (#14326) 2022-05-24 19:43:28 -07:00
basic.spec.ts feat(test runner): separate interrupted status from skipped (#16124) 2022-08-02 12:55:43 -07:00
command-line-filter.spec.ts fix(pwtest): fix focused line with dirname specified (#18189) 2022-10-19 15:05:59 -07:00
config.spec.ts chore: hide setup, store, TestProject.setupMatch, storageStateName (#19442) 2022-12-13 22:48:38 -08:00
esm.spec.ts fix(esm+tsconfig): allow mapped ts files in esm mode (#17862) 2022-10-05 18:00:49 -07:00
exit-code.spec.ts feat: --pass-with-no-tests option (#16902) 2022-08-29 15:46:34 -07:00
expect-poll.spec.ts feat(poll): expose custom poll interval (#13776) 2022-04-26 21:32:38 -07:00
expect-soft.spec.ts chore(test-runner): rewrite poll, soft, wrap (#13335) 2022-04-05 17:47:35 -07:00
expect-to-pass.spec.ts fix: properly handle negated timed-out toPass matcher (#19580) 2022-12-20 08:41:32 -08:00
expect.spec.ts chore: throw InvalidSelectorError from selector parser, add some tests (#19636) 2022-12-21 14:27:35 -08:00
fixture-errors.spec.ts feat(test runner): show the number of fatal errors at the end (#15975) 2022-07-28 14:46:21 -07:00
fixtures.spec.ts fix(test runner): update timeout error messages (#15117) 2022-06-30 17:05:08 -07:00
gitignore.spec.ts fix(runner): ignore .gitignore if testDir is explicitly configured (#14430) 2022-05-26 14:39:51 -07:00
global-setup.spec.ts chore: remove TestProject.projectSetup (#16321) 2022-08-05 15:24:30 -07:00
golden.spec.ts chore: hide "comparator" option from documentation and types (#19441) 2022-12-14 09:58:19 -08:00
hooks.spec.ts chore: report error location for fatal errors (#19610) 2022-12-21 09:36:59 -08:00
list-mode.spec.ts fix(list mode): print errors to stderr (#13016) 2022-03-24 07:33:33 -07:00
loader.spec.ts fix(runner): import export assignment from ts (#19559) 2022-12-19 14:41:29 -08:00
match-grep.spec.ts test(test-runner): add tests to show that grep is case insensitive (#8091) 2021-08-09 14:05:51 -04:00
max-failures.spec.ts fix(test runner): show tests as interrupted when maxFailures stops them (#16178) 2022-08-03 15:25:25 -07:00
override-timeout.spec.ts test(test-runner): unflake override-timeout.spec.ts (#7869) 2021-07-29 13:34:46 -07:00
playwright-test-fixtures.ts chore: remove unused PW_TEST_OUT_OF_PROCESS_DRIVER (#19434) 2022-12-13 16:04:44 -08:00
playwright.artifacts.spec.ts feat: allow options in automatic screenshots (#19143) 2022-12-07 08:45:33 -08:00
playwright.config.spec.ts feat(api): introduce getByTestId (#17645) 2022-09-27 21:06:07 -07:00
playwright.config.ts chore: roll stable-test-runner to 1.28.1 (#19310) 2022-12-06 15:46:19 -08:00
playwright.connect.spec.ts chore: optionally connect instead of launching (#17174) 2022-09-07 15:57:20 -07:00
playwright.ct-build.spec.ts core(ct): import paths (#18131) 2022-10-19 19:41:21 -07:00
playwright.ct-react.spec.ts core(ct): import paths (#18131) 2022-10-19 19:41:21 -07:00
playwright.fetch.spec.ts fix: stop har recording when APIRequestContext is disposed (#17007) 2022-08-31 21:51:38 -07:00
playwright.reuse.spec.ts fix(reuse): stop pending operations upon reuse/disconnect (#18997) 2022-11-22 15:21:20 -08:00
playwright.spec.ts fix(test runner): make sure undefined options in config result in default values (#19632) 2022-12-21 14:34:43 -08:00
playwright.trace.spec.ts feat(test runner): add --trace cli option (#16277) 2022-08-05 09:20:39 -07:00
playwright.unhandled.spec.ts feat(test runner): separate interrupted status from skipped (#16124) 2022-08-02 12:55:43 -07:00
project-setup.spec.ts chore: hide setup, store, TestProject.setupMatch, storageStateName (#19442) 2022-12-13 22:48:38 -08:00
repeat-each.spec.ts chore: enable object-curly-spacing in ESLint (#9168) 2021-09-27 18:58:08 +02:00
reporter-attachment.spec.ts feat(testinfo): add name to attachment output name (#18440) 2022-11-03 13:54:51 -07:00
reporter-base.spec.ts fix(html): test and fix reporter timing display (#19670) 2022-12-22 15:57:55 -08:00
reporter-dot.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
reporter-github.spec.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
reporter-html.spec.ts fix(html): test and fix reporter timing display (#19670) 2022-12-22 15:57:55 -08:00
reporter-json.spec.ts chore: add snippet to the json report (#17567) 2022-09-27 13:23:08 -07:00
reporter-junit.spec.ts fix(junit): escape null control character (#18325) 2022-10-25 14:39:16 -07:00
reporter-line.spec.ts Revert "fix(test runner): handle istty in line reporter (#15455)" (#15633) 2022-07-13 15:11:56 -07:00
reporter-list.spec.ts chore: render steps in list reporter (#18269) 2022-10-24 15:54:53 -07:00
reporter-raw.spec.ts feat(testinfo): add name to attachment output name (#18440) 2022-11-03 13:54:51 -07:00
reporter.spec.ts chore: report error location for fatal errors (#19610) 2022-12-21 09:36:59 -08:00
resolver.spec.ts feat(test runner): support jsconfig.json's baseUrl+paths (#19219) 2022-12-01 16:42:25 -08:00
retry.spec.ts feat(test runner): test.describe.configure({ retries, timeout }) (#18388) 2022-10-27 15:53:27 -07:00
runner.spec.ts chore: report error location for fatal errors (#19610) 2022-12-21 09:36:59 -08:00
shard.spec.ts fix(shards): zero-sized shard should not include all tests (#19148) 2022-11-29 16:02:11 -08:00
snapshot-path-template.spec.ts chore: rewrite error message for missing snapshot (#19104) 2022-11-29 12:51:15 -08:00
stdio.spec.ts fix: support hasColors and getColorDepth in worker (#15590) 2022-07-12 14:47:14 -07:00
store.spec.ts chore: hide setup, store, TestProject.setupMatch, storageStateName (#19442) 2022-12-13 22:48:38 -08:00
test-extend.spec.ts fix(test runner): make sure undefined options in config result in default values (#19632) 2022-12-21 14:34:43 -08:00
test-grep.spec.ts fix: --grep and --grep-invert should intersect with config (#17716) 2022-09-29 16:39:21 -07:00
test-ignore.spec.ts chore: revert "fix(test-runner): escape backslashes in win cli (#11763)" (#12004) 2022-02-10 07:02:37 -08:00
test-info.spec.ts feat: support clarification message for expect (#11735) 2022-01-31 17:14:59 -08:00
test-modifiers.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
test-output-dir.spec.ts feat(playwright-test): introduce snapshotPathTemplate configuration (#18568) 2022-11-09 15:29:07 -08:00
test-parallel.spec.ts fix(parallel): minimize the number of beforeAll/afterAll hooks in parallel mode (#13138) 2022-03-28 16:10:32 -07:00
test-serial.spec.ts fix(test runner): serial suites inside parallel suite should run in parallel (#15769) 2022-07-26 13:38:25 -07:00
test-step.spec.ts feat: return value from step (#16060) 2022-07-29 15:16:07 -07:00
test-use.spec.ts Revert #18561 "feat(test runner): test.reset() to reset options to default/config value" (#18704) 2022-11-10 14:45:05 -08:00
timeout.spec.ts feat(test runner): test.describe.configure({ retries, timeout }) (#18388) 2022-10-27 15:53:27 -07:00
to-have-screenshot.spec.ts chore: hide "comparator" option from documentation and types (#19441) 2022-12-14 09:58:19 -08:00
types-2.spec.ts feat(test runner): test.describe.configure({ retries, timeout }) (#18388) 2022-10-27 15:53:27 -07:00
types.spec.ts chore: hide setup, store, TestProject.setupMatch, storageStateName (#19442) 2022-12-13 22:48:38 -08:00
web-server.spec.ts Revert "feat: send SIGTERM to webserver before SIGKILL'ing it. (#18220)" (#18661) 2022-11-09 09:18:33 -08:00
worker-index.spec.ts feat(test runner): introduce TestInfo.parallelIndex (#9762) 2021-11-01 10:37:34 -07:00