html-reporter 9.3.1 → 9.5.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 (39) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/lib/constants/view-modes.js +4 -1
  3. package/lib/gui/tool-runner/index.js +2 -10
  4. package/lib/plugin-api.js +5 -0
  5. package/lib/static/components/controls/base-host-input.js +1 -1
  6. package/lib/static/components/controls/browser-list.js +1 -5
  7. package/lib/static/components/controls/common-controls.js +4 -7
  8. package/lib/static/components/controls/common-filters.js +1 -1
  9. package/lib/static/components/controls/controls.less +55 -6
  10. package/lib/static/components/controls/gui-controls.js +1 -2
  11. package/lib/static/components/controls/report-controls.js +1 -1
  12. package/lib/static/components/controls/report-info.js +31 -0
  13. package/lib/static/components/controls/selects/index.styl +1 -2
  14. package/lib/static/components/gui.js +0 -2
  15. package/lib/static/components/header/header.css +0 -5
  16. package/lib/static/components/header/index.js +10 -17
  17. package/lib/static/components/header/summary/summary.css +2 -2
  18. package/lib/static/components/report.js +0 -2
  19. package/lib/static/components/suites.js +2 -2
  20. package/lib/static/gui.min.css +40 -8
  21. package/lib/static/gui.min.js +16 -16
  22. package/lib/static/modules/action-names.js +1 -3
  23. package/lib/static/modules/actions.js +1 -12
  24. package/lib/static/modules/default-state.js +0 -1
  25. package/lib/static/modules/middlewares/local-storage.js +0 -1
  26. package/lib/static/modules/middlewares/metrika.js +1 -3
  27. package/lib/static/modules/reducers/grouped-tests/index.js +1 -2
  28. package/lib/static/modules/reducers/tree/index.js +1 -2
  29. package/lib/static/modules/reducers/tree/nodes/browsers.js +2 -2
  30. package/lib/static/modules/reducers/view.js +2 -13
  31. package/lib/static/modules/utils.js +13 -3
  32. package/lib/static/report.min.css +41 -9
  33. package/lib/static/report.min.js +16 -16
  34. package/lib/static/styles.css +9 -10
  35. package/lib/test-adapter.js +1 -1
  36. package/lib/workers/worker.js +4 -2
  37. package/package.json +2 -3
  38. package/lib/static/components/controls/gui-controls.css +0 -4
  39. package/lib/static/components/skipped-list.js +0 -46
@@ -38,8 +38,6 @@ main.container {
38
38
  .browserlist {
39
39
  display: inline-block;
40
40
  vertical-align: top;
41
- margin-right: 15px;
42
- margin-bottom: 15px;
43
41
  }
44
42
 
45
43
  .browserlist_linear .rc-tree-select-tree-switcher {
@@ -153,8 +151,7 @@ main.container {
153
151
 
154
152
  .strict-match-filter {
155
153
  display: inline-block;
156
- margin-left: 15px;
157
- margin-bottom: 15px;
154
+ height: 25px;
158
155
  line-height: 21px;
159
156
  }
160
157
 
@@ -187,10 +184,14 @@ main.container {
187
184
  }
188
185
 
189
186
  .menu-bar {
190
- display: inline-block;
191
- vertical-align: middle;
192
- margin-left: 15px;
187
+ align-items: center;
188
+ display: flex;
193
189
  font-size: 20px;
190
+ height: 25px;
191
+ }
192
+
193
+ .menu-bar .icon {
194
+ margin: 0;
194
195
  }
195
196
 
196
197
  .menu-bar .ui.dropdown .menu>.item,
@@ -209,7 +210,6 @@ main.container {
209
210
  font-size: 11px;
210
211
  font-family: inherit;
211
212
  cursor: pointer;
212
- margin-right: 5px;
213
213
  background: #fff;
214
214
  border: 1px solid #ccc;
215
215
  border-radius: 2px;
@@ -780,11 +780,10 @@ a:active {
780
780
  border: 1px solid #ccc;
781
781
  border-radius: 2px;
782
782
  height: 25px;
783
- margin-bottom: 15px;
784
783
  }
785
784
 
786
785
  .basehost__text {
787
- width: 200px;
786
+ width: 210px;
788
787
  }
789
788
 
790
789
  .filter__input-name {
@@ -377,7 +377,7 @@ module.exports = class TestAdapter {
377
377
  return result;
378
378
  }
379
379
 
380
- //parallelize and cache of 'gemini-core.Image.buildDiff' (because it is very slow)
380
+ //parallelize and cache of 'looks-same.createDiff' (because it is very slow)
381
381
  async _saveDiffInWorker(imageDiffError, destPath, workers, cacheDiffImages = globalCacheDiffImages) {
382
382
  await utils.makeDirFor(destPath);
383
383
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const {Image} = require('gemini-core');
3
+ const looksSame = require('looks-same');
4
4
 
5
5
  module.exports = {
6
6
  /**
@@ -8,6 +8,8 @@ module.exports = {
8
8
  * @param {String} diffPath
9
9
  */
10
10
  saveDiffTo: function(imageDiffError, diffPath) {
11
- return Image.buildDiff({diff: diffPath, ...imageDiffError.diffOpts});
11
+ const {diffColor: highlightColor, ...otherOpts} = imageDiffError.diffOpts;
12
+
13
+ return looksSame.createDiff({diff: diffPath, highlightColor, ...otherOpts});
12
14
  }
13
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "9.3.1",
3
+ "version": "9.5.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",
@@ -55,12 +55,11 @@
55
55
  "filesize": "^8.0.6",
56
56
  "fs-extra": "^7.0.1",
57
57
  "gemini-configparser": "^1.0.0",
58
- "gemini-core": "^6.3.2",
59
58
  "http-codes": "1.0.0",
60
59
  "inquirer": "^8.2.0",
61
60
  "json-stringify-safe": "^5.0.1",
62
61
  "lodash": "^4.17.4",
63
- "looks-same": "^7.1.1",
62
+ "looks-same": "^8.0.0",
64
63
  "nested-error-stacks": "^2.1.0",
65
64
  "opener": "^1.4.3",
66
65
  "ora": "^5.4.1",
@@ -1,4 +0,0 @@
1
- .control-buttons {
2
- display: flex;
3
- flex-wrap: wrap;
4
- }
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import PropTypes from 'prop-types';
5
- import Parser from 'html-react-parser';
6
- import classNames from 'classnames';
7
- import {connect} from 'react-redux';
8
-
9
- class SkippedList extends Component {
10
- static propTypes = {
11
- showSkipped: PropTypes.bool.isRequired,
12
- skips: PropTypes.array.isRequired
13
- }
14
-
15
- render() {
16
- const {showSkipped, skips} = this.props;
17
- const collapsed = !showSkipped;
18
- const className = classNames('skipped__list', {collapsed});
19
-
20
- const skipsTmpl = skips.length > 0
21
- ? this._drawSkips(skips)
22
- : 'There are no skipped tests';
23
-
24
- return (<div className={className}>{skipsTmpl}</div>);
25
- }
26
-
27
- _drawSkips(skips) {
28
- return skips.map((skip, index) => {
29
- const {browser, comment, suite} = skip;
30
- return (
31
- <div key={index} className="skipped-test">
32
- <span className="skipped-test__title">{suite}</span> > {browser}
33
- {comment && ' reason: '}
34
- {comment && Parser(comment)}
35
- </div>
36
- );
37
- });
38
- }
39
- }
40
-
41
- export default connect(
42
- (state) => ({
43
- showSkipped: state.view.showSkipped,
44
- skips: state.skips
45
- })
46
- )(SkippedList);