html-reporter 7.7.0 → 7.7.1

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 CHANGED
@@ -2,6 +2,16 @@
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="7.7.1"></a>
6
+ ## [7.7.1](https://github.com/gemini-testing/html-reporter/compare/v7.7.0...v7.7.1) (2021-11-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
5
15
  <a name="7.7.0"></a>
6
16
  # [7.7.0](https://github.com/gemini-testing/html-reporter/compare/v7.6.1...v7.7.0) (2021-11-09)
7
17
 
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
- - `selectors` - the memoized html-reporter selectors which created using **reselect** library
276
- - `pluginConfig` - plugin configuration.
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`
@@ -16,11 +16,15 @@ export default class Details extends Component {
16
16
  state = {isOpened: false};
17
17
 
18
18
  handleClick = () => {
19
- this.setState({isOpened: !this.state.isOpened});
19
+ this.setState((state, props) => {
20
+ const newState = {isOpened: !state.isOpened};
20
21
 
21
- if (this.props.onClick) {
22
- this.props.onClick();
23
- }
22
+ if (props.onClick) {
23
+ props.onClick(newState);
24
+ }
25
+
26
+ return newState;
27
+ });
24
28
  }
25
29
 
26
30
  render() {