html-reporter 7.7.0 → 8.0.2
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.
- package/CHANGELOG.md +50 -0
- package/README.md +5 -3
- package/lib/gui/server.js +3 -2
- package/lib/static/components/details.js +8 -4
- package/lib/static/components/section/section-browser.js +1 -0
- package/lib/static/components/section/title/browser.js +3 -2
- package/lib/static/gui.min.css +1 -0
- package/lib/static/gui.min.js +22 -36
- package/lib/static/modules/action-names.js +1 -1
- package/lib/static/modules/actions.js +16 -4
- package/lib/static/modules/load-plugin.js +2 -1
- package/lib/static/modules/reducers/db.js +8 -0
- package/lib/static/modules/sqlite.js +7 -1
- package/lib/static/report.min.css +1 -0
- package/lib/static/report.min.js +22 -36
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
<a name="8.0.2"></a>
|
|
6
|
+
## [8.0.2](https://github.com/gemini-testing/html-reporter/compare/v8.0.1...v8.0.2) (2021-12-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* copy link for skipped test ([9d0df96](https://github.com/gemini-testing/html-reporter/commit/9d0df96))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<a name="8.0.1"></a>
|
|
16
|
+
## [8.0.1](https://github.com/gemini-testing/html-reporter/compare/v8.0.0...v8.0.1) (2021-12-01)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **gui:** stop endlessly restarting tests ([#412](https://github.com/gemini-testing/html-reporter/issues/412)) ([fb8a397](https://github.com/gemini-testing/html-reporter/commit/fb8a397))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<a name="8.0.0"></a>
|
|
26
|
+
# [8.0.0](https://github.com/gemini-testing/html-reporter/compare/v7.7.1...v8.0.0) (2021-11-25)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* update better-sqlite to support Node 16 ([0df4cb5](https://github.com/gemini-testing/html-reporter/commit/0df4cb5))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Chores
|
|
35
|
+
|
|
36
|
+
* drop nodejs <= 12 support ([afbc1a5](https://github.com/gemini-testing/html-reporter/commit/afbc1a5))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### BREAKING CHANGES
|
|
40
|
+
|
|
41
|
+
* drop nodejs <= 12.x support
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<a name="7.7.1"></a>
|
|
46
|
+
## [7.7.1](https://github.com/gemini-testing/html-reporter/compare/v7.7.0...v7.7.1) (2021-11-18)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* **gui:** reconnect to database on tests end event ([#411](https://github.com/gemini-testing/html-reporter/issues/411)) ([002b43d](https://github.com/gemini-testing/html-reporter/commit/002b43d))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
5
55
|
<a name="7.7.0"></a>
|
|
6
56
|
# [7.7.0](https://github.com/gemini-testing/html-reporter/compare/v7.6.1...v7.7.0) (2021-11-09)
|
|
7
57
|
|
package/README.md
CHANGED
|
@@ -256,7 +256,7 @@ directory.
|
|
|
256
256
|
The routes then can be called from the plugin React components defined in the `plugin.js`. For convenience the plugin name is always passed with options when function- or array-returning form is used to export plugin as the function options property `pluginName`:
|
|
257
257
|
|
|
258
258
|
```js
|
|
259
|
-
export default ['react', 'axios', function(React, axios, {pluginName, pluginConfig, actions, selectors}) {
|
|
259
|
+
export default ['react', 'axios', function(React, axios, {pluginName, pluginConfig, actions, actionNames, selectors}) {
|
|
260
260
|
class PluginComponent extends React.Component {
|
|
261
261
|
// ... somewhere inside the component ...
|
|
262
262
|
const result = await axios.get(`/plugin-routes/${pluginName}/plugin-route`);
|
|
@@ -271,9 +271,11 @@ directory.
|
|
|
271
271
|
|
|
272
272
|
In the example you can also see another convenient properties:
|
|
273
273
|
- `pluginName` - plugin name;
|
|
274
|
+
- `pluginConfig` - plugin configuration;
|
|
274
275
|
- `actions` - the html-reporter **Redux** actions;
|
|
275
|
-
- `
|
|
276
|
-
- `
|
|
276
|
+
- `actionNames` - the html-reporter action names, that used in **Redux** actions. To be able to subscribe on html-reporter events;
|
|
277
|
+
- `selectors` - the memoized html-reporter selectors which created using **reselect** library.
|
|
278
|
+
|
|
277
279
|
|
|
278
280
|
Available dependencies:
|
|
279
281
|
- `react`
|
package/lib/gui/server.js
CHANGED
|
@@ -54,9 +54,10 @@ exports.start = async ({paths, hermione, guiApi, configs}) => {
|
|
|
54
54
|
res.json(app.data);
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
server.post('/run',
|
|
57
|
+
server.post('/run', (req, res) => {
|
|
58
58
|
try {
|
|
59
|
-
|
|
59
|
+
// do not wait for completion so that response does not hang and browser does not restart it by timeout
|
|
60
|
+
app.run(req.body);
|
|
60
61
|
res.sendStatus(OK);
|
|
61
62
|
} catch (e) {
|
|
62
63
|
res.status(INTERNAL_SERVER_ERROR).send(`Error while trying to run tests: ${e.message}`);
|
|
@@ -16,11 +16,15 @@ export default class Details extends Component {
|
|
|
16
16
|
state = {isOpened: false};
|
|
17
17
|
|
|
18
18
|
handleClick = () => {
|
|
19
|
-
this.setState(
|
|
19
|
+
this.setState((state, props) => {
|
|
20
|
+
const newState = {isOpened: !state.isOpened};
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if (props.onClick) {
|
|
23
|
+
props.onClick(newState);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return newState;
|
|
27
|
+
});
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
render() {
|
|
@@ -14,6 +14,7 @@ class BrowserTitle extends Component {
|
|
|
14
14
|
static propTypes = {
|
|
15
15
|
title: PropTypes.node.isRequired,
|
|
16
16
|
browserId: PropTypes.string.isRequired,
|
|
17
|
+
browserName: PropTypes.string.isRequired,
|
|
17
18
|
lastResultId: PropTypes.string.isRequired,
|
|
18
19
|
handler: PropTypes.func.isRequired,
|
|
19
20
|
// from store
|
|
@@ -30,10 +31,10 @@ class BrowserTitle extends Component {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
_getTestUrl() {
|
|
33
|
-
const {
|
|
34
|
+
const {browserName, testName, retryIndex} = this.props;
|
|
34
35
|
|
|
35
36
|
return appendQuery(window.location.href, {
|
|
36
|
-
browser:
|
|
37
|
+
browser: browserName,
|
|
37
38
|
testNameFilter: testName,
|
|
38
39
|
strictMatchFilter: true,
|
|
39
40
|
retryIndex,
|