html-reporter 9.9.0 → 9.9.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/2html-reporter.iml +9 -0
- package/CHANGELOG.md +21 -0
- package/lib/common-utils.js +1 -1
- package/lib/static/components/section/title/browser.js +1 -2
- package/lib/static/components/state/screenshot/diff-circle.js +3 -2
- package/lib/static/components/state/screenshot/resized.js +1 -0
- package/lib/static/gui.min.js +3 -3
- package/lib/static/modules/middlewares/local-storage.js +5 -1
- package/lib/static/report.min.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.9.2"></a>
|
|
6
|
+
## [9.9.2](https://github.com/gemini-testing/html-reporter/compare/v9.9.1...v9.9.2) (2023-06-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update local storage on CHANGE_VIEW_MODE ([a0db7d5](https://github.com/gemini-testing/html-reporter/commit/a0db7d5))
|
|
12
|
+
* **host-input:** broken test links on host change ([b34dfed](https://github.com/gemini-testing/html-reporter/commit/b34dfed))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<a name="9.9.1"></a>
|
|
17
|
+
## [9.9.1](https://github.com/gemini-testing/html-reporter/compare/v9.9.0...v9.9.1) (2023-05-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 3-up scaled to fit diff bubble ([58aefb8](https://github.com/gemini-testing/html-reporter/commit/58aefb8))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
5
26
|
<a name="9.9.0"></a>
|
|
6
27
|
# [9.9.0](https://github.com/gemini-testing/html-reporter/compare/v9.8.3...v9.9.0) (2023-05-11)
|
|
7
28
|
|
package/lib/common-utils.js
CHANGED
|
@@ -20,8 +20,7 @@ class BrowserTitle extends Component {
|
|
|
20
20
|
// from store
|
|
21
21
|
testName: PropTypes.string.isRequired,
|
|
22
22
|
retryIndex: PropTypes.number.isRequired,
|
|
23
|
-
suiteUrl: PropTypes.string
|
|
24
|
-
parsedHost: PropTypes.object
|
|
23
|
+
suiteUrl: PropTypes.string
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
_getTestUrl() {
|
|
@@ -7,6 +7,7 @@ import {CIRCLE_RADIUS} from '../../../../constants/defaults';
|
|
|
7
7
|
|
|
8
8
|
export default class DiffCircle extends Component {
|
|
9
9
|
static propTypes = {
|
|
10
|
+
originalImageWidth: PropTypes.number.isRequired,
|
|
10
11
|
diffTarget: PropTypes.object.isRequired,
|
|
11
12
|
diffBounds: PropTypes.object.isRequired,
|
|
12
13
|
display: PropTypes.bool.isRequired,
|
|
@@ -14,9 +15,9 @@ export default class DiffCircle extends Component {
|
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
_getRect() {
|
|
17
|
-
const {diffBounds, diffTarget} = this.props;
|
|
18
|
+
const {originalImageWidth, diffBounds, diffTarget} = this.props;
|
|
18
19
|
const targetRect = diffTarget.getBoundingClientRect();
|
|
19
|
-
const sizeCoeff = diffTarget.offsetWidth /
|
|
20
|
+
const sizeCoeff = diffTarget.offsetWidth / originalImageWidth;
|
|
20
21
|
|
|
21
22
|
const rectHeight = Math.ceil(sizeCoeff * (diffBounds.bottom - diffBounds.top + 1));
|
|
22
23
|
const rectWidth = Math.ceil(sizeCoeff * (diffBounds.right - diffBounds.left + 1));
|
|
@@ -33,6 +33,7 @@ class ResizedScreenshot extends Component {
|
|
|
33
33
|
_getScreenshotComponent(elem, diffClusters) {
|
|
34
34
|
return <Fragment>
|
|
35
35
|
{diffClusters && diffClusters.map((c, id) => <DiffCircle
|
|
36
|
+
originalImageWidth={this.props.image.size.width}
|
|
36
37
|
diffTarget={this.state.diffTarget}
|
|
37
38
|
display={this.state.showDiffCircle}
|
|
38
39
|
toggleDiff={this.toggleDiff}
|