html-reporter 9.9.1 → 9.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/lib/common-utils.js +7 -1
  3. package/lib/constants/checked-statuses.js +7 -0
  4. package/lib/static/components/bullet.js +30 -0
  5. package/lib/static/components/controls/common-filters.js +4 -2
  6. package/lib/static/components/controls/gui-controls.js +4 -39
  7. package/lib/static/components/controls/run-button/index.js +129 -0
  8. package/lib/static/components/controls/run-button/index.styl +49 -0
  9. package/lib/static/components/controls/show-checkboxes-input.js +24 -0
  10. package/lib/static/components/controls/strict-match-filter-input.js +1 -1
  11. package/lib/static/components/group-tests/item.js +58 -31
  12. package/lib/static/components/popup/index.js +6 -2
  13. package/lib/static/components/popup/index.styl +39 -33
  14. package/lib/static/components/section/section-browser.js +1 -1
  15. package/lib/static/components/section/title/browser-skipped.js +32 -15
  16. package/lib/static/components/section/title/browser.js +49 -43
  17. package/lib/static/components/section/title/simple.js +59 -55
  18. package/lib/static/gui.css +40 -24
  19. package/lib/static/gui.min.css +1 -1
  20. package/lib/static/gui.min.js +17 -17
  21. package/lib/static/hooks/useLocalStorage.js +39 -0
  22. package/lib/static/modules/action-names.js +4 -1
  23. package/lib/static/modules/actions.js +4 -1
  24. package/lib/static/modules/middlewares/local-storage.js +5 -1
  25. package/lib/static/modules/reducers/tree/helpers.js +16 -0
  26. package/lib/static/modules/reducers/tree/index.js +58 -3
  27. package/lib/static/modules/reducers/tree/nodes/browsers.js +8 -1
  28. package/lib/static/modules/reducers/tree/nodes/suites.js +36 -4
  29. package/lib/static/modules/selectors/tree.js +13 -0
  30. package/lib/static/report.min.css +1 -1
  31. package/lib/static/report.min.js +17 -17
  32. package/lib/static/styles.css +64 -14
  33. package/package.json +1 -1
  34. package/lib/static/components/controls/run-button.js +0 -27
@@ -52,25 +52,25 @@ main.container {
52
52
  color: #000;
53
53
  }
54
54
 
55
- .strict-match-filter {
55
+ .toggle-control {
56
56
  display: inline-block;
57
57
  height: 25px;
58
58
  line-height: 21px;
59
59
  }
60
60
 
61
- .strict-match-filter .ui.checkbox label {
61
+ .toggle-control .ui.checkbox label {
62
62
  padding-left: 55px;
63
63
  }
64
64
 
65
- .strict-match-filter .ui.toggle.checkbox input:focus:checked~.box:before,
66
- .strict-match-filter .ui.toggle.checkbox input:focus:checked~label:before,
67
- .strict-match-filter .ui.toggle.checkbox input:checked~.box:before,
68
- .strict-match-filter .ui.toggle.checkbox input:checked~label:before {
65
+ .toggle-control .ui.toggle.checkbox input:focus:checked~.box:before,
66
+ .toggle-control .ui.toggle.checkbox input:focus:checked~label:before,
67
+ .toggle-control .ui.toggle.checkbox input:checked~.box:before,
68
+ .toggle-control .ui.toggle.checkbox input:checked~label:before {
69
69
  background-color: #ffeb9f!important;
70
70
  }
71
71
 
72
- .strict-match-filter .ui.checkbox .box,
73
- .strict-match-filter .ui.checkbox label {
72
+ .toggle-control .ui.checkbox .box,
73
+ .toggle-control .ui.checkbox label {
74
74
  font-size: 11px;
75
75
  font-family: inherit;
76
76
  }
@@ -275,6 +275,34 @@ main.container {
275
275
  user-select: none;
276
276
  }
277
277
 
278
+ .ui.checkbox.indeterminate label:after {
279
+ margin-top: 0.5px;
280
+ }
281
+
282
+ .section__title .ui.checkbox,
283
+ .tests-group__title .ui.checkbox {
284
+ vertical-align: bottom;
285
+ margin-right: 5px;
286
+
287
+ width: 18px;
288
+ height: 18px;
289
+ }
290
+
291
+ .section__title .ui.checkbox label:before,
292
+ .tests-group__title .ui.checkbox label:before {
293
+ width: 14px;
294
+ height: 14px;
295
+ border-width: 1.5px;
296
+ }
297
+
298
+ .section__title .ui.checkbox label:after,
299
+ .tests-group__title .ui.checkbox label:after {
300
+ width: 14px;
301
+ height: 14px;
302
+ font-size: 14px;
303
+ line-height: 14px;
304
+ }
305
+
278
306
  .section__body .section__title {
279
307
  font-size: 15px;
280
308
  line-height: 20px;
@@ -284,14 +312,14 @@ main.container {
284
312
  font-weight: normal;
285
313
  }
286
314
 
287
- .section__title:before,
288
- .tests-group__title:before,
315
+ .section__title .bullet_type-simple:before,
316
+ .tests-group__title .bullet_type-simple.tests-group__bullet:before,
289
317
  .state-title:after,
290
318
  .details__summary:after,
291
319
  .error .details__summary:before,
292
320
  .sticky-header__wrap:before {
293
321
  content: '';
294
- width: 16px;
322
+ width: 18px;
295
323
  height: 16px;
296
324
  display: inline-block;
297
325
  margin-right: 5px;
@@ -317,7 +345,7 @@ main.container {
317
345
  background-image: url("data:image/svg+xml,%3Csvg width='16px' height='16px' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 0 C31 0 27 2 24 5 C22 7 21 8 20 11 C18 15 18 22 19 27 C20 29 21 31 22 33 C23 34 25 36 27 37 C27 37 28 37 28 37 C28 37 26 42 23 48 C20 55 17 60 17 62 L16 64 L20 63 L24 63 L35 39 L38 39 L41 39 L41 64 L47 64 L47 0 L42 0 C38 0 35 0 35 0 ZM41 19 L41 33 L38 33 C36 33 34 33 34 33 C31 32 28 30 27 27 C25 23 26 16 27 12 C28 9 31 6 34 6 C35 6 35 5 35 5 C36 5 37 5 38 5 L41 5 ZM41 19'/%3E%3C/svg%3E%0A");
318
346
  }
319
347
 
320
- .tests-group__title:before {
348
+ .tests-group__title .bullet_type-simple.tests-group__bullet:before {
321
349
  flex-shrink: 0;
322
350
  }
323
351
 
@@ -347,8 +375,8 @@ details[open] > .details__summary:before {
347
375
  content: none;
348
376
  }
349
377
 
350
- .section_collapsed .section__title:before,
351
- .tests-group_collapsed .tests-group__title:before,
378
+ .section_collapsed .section__title .bullet_type-simple:before,
379
+ .tests-group_collapsed .tests-group__title .tests-group__bullet:before,
352
380
  .state-title_collapsed.state-title:after {
353
381
  transform: rotate(180deg);
354
382
  }
@@ -357,6 +385,12 @@ details[open] > .details__summary:before {
357
385
  color: #8c8c8c;
358
386
  }
359
387
 
388
+ .section_status_skipped > .section__title .ui.checkbox label:before,
389
+ .section_status_skipped > .section__title .ui.checkbox label:after {
390
+ color: #8c8c8c !important;
391
+ border-color: #8c8c8c !important;
392
+ }
393
+
360
394
  .section_status_skipped > .section__title:hover {
361
395
  color: #c6c6c6;
362
396
  }
@@ -384,6 +418,14 @@ details[open] > .details__summary:before {
384
418
  color: #038035;
385
419
  }
386
420
 
421
+ .section_status_success > .section__title .ui.checkbox label:before,
422
+ .section_status_success > .section__title .ui.checkbox label:after,
423
+ .section_status_updated > .section__title .ui.checkbox label:before,
424
+ .section_status_updated > .section__title .ui.checkbox label:after {
425
+ color: #038035 !important;
426
+ border-color: #038035 !important;
427
+ }
428
+
387
429
  .section_status_success > .section__title:hover,
388
430
  .state-title_success:hover,
389
431
  .state-title_updated:hover {
@@ -397,6 +439,14 @@ details[open] > .details__summary:before {
397
439
  color: #c00;
398
440
  }
399
441
 
442
+ .section_status_fail > .section__title .ui.checkbox label:before,
443
+ .section_status_fail > .section__title .ui.checkbox label:after,
444
+ .section_status_error > .section__title .ui.checkbox label:before,
445
+ .section_status_error > .section__title .ui.checkbox label:after {
446
+ color: #c00 !important;
447
+ border-color: #c00 !important;
448
+ }
449
+
400
450
  .section_status_fail > .section__title:hover,
401
451
  .section_status_error > .section__title:hover,
402
452
  .state-title_fail:hover,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "9.9.1",
3
+ "version": "9.10.0",
4
4
  "description": "Plugin for hermione which is intended to aggregate the results of tests running into html report",
5
5
  "scripts": {
6
6
  "coverage": "nyc npm run test-unit",
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import PropTypes from 'prop-types';
5
- import ControlButton from './control-button';
6
-
7
- export default class RunButton extends Component {
8
- static propTypes = {
9
- handler: PropTypes.func.isRequired,
10
- autoRun: PropTypes.bool.isRequired,
11
- isDisabled: PropTypes.bool,
12
- isRunning: PropTypes.bool
13
- }
14
-
15
- componentDidMount() {
16
- if (this.props.autoRun) {
17
- this.props.handler();
18
- }
19
- }
20
-
21
- render() {
22
- const {handler, isDisabled, isRunning} = this.props;
23
-
24
- return (<ControlButton label="Run" isAction={true} handler={handler} isDisabled={isDisabled}
25
- isRunning={isRunning}/>);
26
- }
27
- }