playwright/packages
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
..
html-reporter feat(html): display overall duration (#19576) 2022-12-20 14:13:10 -08:00
playwright chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-chromium chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-core fix(html): test and fix reporter timing display (#19670) 2022-12-22 15:57:55 -08:00
playwright-ct-react chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-ct-solid chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-ct-svelte chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-ct-vue chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-ct-vue2 feat(ct): vue2 plugins (#18596) 2022-12-19 15:33:50 -08:00
playwright-firefox chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
playwright-test fix(test runner): make sure undefined options in config result in default values (#19632) 2022-12-21 14:34:43 -08:00
playwright-webkit chore: cut version 1.29 (#19489) 2022-12-15 11:22:35 -08:00
protocol/src feat(android): add support for passing CR args & proxy when launching browser (#19212) 2022-12-12 16:15:19 +01:00
recorder chore: recorder button styling (#19231) 2022-12-15 18:35:24 +01:00
trace/src chore: render typed locators in the trace viewer (#18166) 2022-10-18 19:23:40 -07:00
trace-viewer chore: render browser window in trace (#18870) 2022-11-22 08:41:52 -08:00
web fix(html): test and fix reporter timing display (#19670) 2022-12-22 15:57:55 -08:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00