html-reporter 9.7.3 → 9.7.5
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 +20 -0
- package/lib/static/components/icons/{view-in-browser.js → view-in-browser/index.js} +13 -6
- package/lib/static/components/icons/view-in-browser/index.styl +28 -0
- package/lib/static/components/modals/screenshot-accepter/header.js +1 -0
- package/lib/static/components/modals/screenshot-accepter/index.js +1 -1
- package/lib/static/components/modals/screenshot-accepter/meta.js +7 -5
- package/lib/static/gui.html +1 -13
- package/lib/static/gui.min.css +1 -691
- package/lib/static/gui.min.js +61 -47
- package/lib/static/index.html +1 -13
- package/lib/static/report.min.css +1 -691
- package/lib/static/report.min.js +61 -47
- package/lib/static/styles.css +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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="9.7.5"></a>
|
|
6
|
+
## [9.7.5](https://github.com/gemini-testing/html-reporter/compare/v9.7.4...v9.7.5) (2023-01-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add inactive ViewInBrowser icon ([8282985](https://github.com/gemini-testing/html-reporter/commit/8282985))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<a name="9.7.4"></a>
|
|
16
|
+
## [9.7.4](https://github.com/gemini-testing/html-reporter/compare/v9.7.3...v9.7.4) (2023-01-11)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **modal-view:** do not crash on ScreenshotAccepterMeta render ([bbe0dcf](https://github.com/gemini-testing/html-reporter/commit/bbe0dcf))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
5
25
|
<a name="9.7.3"></a>
|
|
6
26
|
## [9.7.3](https://github.com/gemini-testing/html-reporter/compare/v9.7.2...v9.7.3) (2022-12-21)
|
|
7
27
|
|
|
@@ -5,15 +5,17 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import url from 'url';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
|
|
8
|
-
import * as actions from '
|
|
8
|
+
import * as actions from '../../../modules/actions';
|
|
9
|
+
|
|
10
|
+
import './index.styl';
|
|
9
11
|
|
|
10
12
|
class ViewInBrowser extends Component {
|
|
11
13
|
static propTypes = {
|
|
12
14
|
resultId: PropTypes.string.isRequired,
|
|
13
15
|
extendClassNames: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
|
|
14
16
|
// from store
|
|
15
|
-
suiteUrl: PropTypes.string
|
|
16
|
-
parsedHost: PropTypes.object
|
|
17
|
+
suiteUrl: PropTypes.string,
|
|
18
|
+
parsedHost: PropTypes.object
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
onViewInBrowser = (e) => {
|
|
@@ -31,18 +33,23 @@ class ViewInBrowser extends Component {
|
|
|
31
33
|
render() {
|
|
32
34
|
const {suiteUrl, parsedHost, extendClassNames} = this.props;
|
|
33
35
|
const className = classNames(
|
|
34
|
-
'
|
|
36
|
+
'fa view-in-browser',
|
|
37
|
+
suiteUrl ? 'fa-eye view-in-browser_active' : 'fa-eye-slash view-in-browser_disabled',
|
|
35
38
|
extendClassNames
|
|
36
39
|
);
|
|
37
40
|
|
|
41
|
+
if (!suiteUrl) {
|
|
42
|
+
return <i className={className} aria-hidden="true" />;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
return (
|
|
39
46
|
<a
|
|
40
47
|
className={className}
|
|
41
48
|
href={this._buildUrl(suiteUrl, parsedHost)}
|
|
42
49
|
onClick={this.onViewInBrowser}
|
|
43
50
|
title="view in browser"
|
|
44
|
-
target="_blank"
|
|
45
|
-
|
|
51
|
+
target="_blank"
|
|
52
|
+
/>
|
|
46
53
|
);
|
|
47
54
|
}
|
|
48
55
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.view-in-browser {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: 16px;
|
|
4
|
+
height: 19px;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
margin-left: 4px;
|
|
7
|
+
margin-right: 0;
|
|
8
|
+
padding: 0 2px;
|
|
9
|
+
border: none;
|
|
10
|
+
color: black;
|
|
11
|
+
opacity: 0.3;
|
|
12
|
+
|
|
13
|
+
&:visited {
|
|
14
|
+
color: black;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:active,
|
|
18
|
+
&:hover {
|
|
19
|
+
&.view-in-browser_active {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.view-in-browser_disabled {
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -131,6 +131,7 @@ export default class ScreenshotAccepterHeader extends Component {
|
|
|
131
131
|
label="Show meta"
|
|
132
132
|
title="Show test meta info"
|
|
133
133
|
isActive={showMeta}
|
|
134
|
+
isDisabled={images.length === 0}
|
|
134
135
|
isSuiteControl={true}
|
|
135
136
|
extendClassNames="screenshot-accepter__show-meta-btn"
|
|
136
137
|
handler={onShowMeta}
|
|
@@ -6,21 +6,23 @@ import MetaInfoContent from '../../section/body/meta-info/content';
|
|
|
6
6
|
export default class ScreenshotAccepterMeta extends Component {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
showMeta: PropTypes.bool.isRequired,
|
|
9
|
-
|
|
9
|
+
image: PropTypes.shape({
|
|
10
|
+
parentId: PropTypes.string
|
|
11
|
+
})
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
render() {
|
|
13
|
-
const {showMeta,
|
|
15
|
+
const {showMeta, image} = this.props;
|
|
14
16
|
|
|
15
|
-
if (!showMeta) {
|
|
16
|
-
return
|
|
17
|
+
if (!showMeta || !image) {
|
|
18
|
+
return null;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
return (
|
|
20
22
|
<Fragment>
|
|
21
23
|
<div className="screenshot-accepter__meta container">
|
|
22
24
|
<MetaInfoContent
|
|
23
|
-
resultId={
|
|
25
|
+
resultId={image.parentId}
|
|
24
26
|
/>
|
|
25
27
|
</div>
|
|
26
28
|
<hr className='tab__separator' />
|
package/lib/static/gui.html
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
<!
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Gui report</title>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
|
|
7
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"/>
|
|
8
|
-
<link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png" />
|
|
9
|
-
<link href="gui.min.css" rel="stylesheet"></head>
|
|
10
|
-
<body class="report">
|
|
11
|
-
<div id="app"></div>
|
|
12
|
-
<script type="text/javascript" src="sql-wasm.js"></script><script type="text/javascript" src="gui.min.js"></script></body>
|
|
13
|
-
</html>
|
|
1
|
+
<!doctype html><html><head><title>Gui report</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link href="gui.min.css" rel="stylesheet"></head><body class="report"><div id="app"></div><script src="sql-wasm.js"></script><script src="gui.min.js"></script></body></html>
|