mirror of
https://github.com/logos-messaging/logos-messaging-allure-js.git
synced 2026-02-22 09:03:14 +00:00
deploy: waku-org/js-waku@78d1780fba
This commit is contained in:
parent
4222dd1e31
commit
6269696432
40
6716/app.js
40
6716/app.js
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
|||||||
{"uid":"b1a8273437954620fa374b796ffaacdd","children":[],"name":"behaviors"}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"uid":"4b4757e66a1912dae1a509f688f20b0f","children":[],"name":"categories"}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"uid":"83edc06c07f9ae9e47eb6dd1b683e4e2","children":[],"name":"packages"}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"uid":"98d3104e051c652961429bf95fa0b5d6","children":[],"name":"suites"}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"uid":"ab17fc5a4eb3bca4b216b548c7f9fcbc","children":[],"name":"timeline"}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
launch_status failed=0 1710644544000000000
|
|
||||||
launch_status broken=0 1710644544000000000
|
|
||||||
launch_status passed=0 1710644544000000000
|
|
||||||
launch_status skipped=0 1710644544000000000
|
|
||||||
launch_status unknown=0 1710644544000000000
|
|
||||||
launch_time duration=0 1710644544000000000
|
|
||||||
launch_time min_duration=0 1710644544000000000
|
|
||||||
launch_time max_duration=0 1710644544000000000
|
|
||||||
launch_time sum_duration=0 1710644544000000000
|
|
||||||
launch_retries retries=0 1710644544000000000
|
|
||||||
launch_retries run=0 1710644544000000000
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Allure Report summary mail</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
Mail body
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
launch_status_failed 0
|
|
||||||
launch_status_broken 0
|
|
||||||
launch_status_passed 0
|
|
||||||
launch_status_skipped 0
|
|
||||||
launch_status_unknown 0
|
|
||||||
launch_time_duration 0
|
|
||||||
launch_time_min_duration 0
|
|
||||||
launch_time_max_duration 0
|
|
||||||
launch_time_sum_duration 0
|
|
||||||
launch_retries_retries 0
|
|
||||||
launch_retries_run 0
|
|
||||||
BIN
6716/favicon.ico
BIN
6716/favicon.ico
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
@ -1 +0,0 @@
|
|||||||
[{"data":{}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{"failed":0,"broken":0,"skipped":0,"passed":0,"unknown":0,"total":0}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{"run":0,"retry":0}}]
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html dir="ltr" lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Allure Report</title>
|
|
||||||
<link rel="icon" href="favicon.ico">
|
|
||||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="plugin/screen-diff/styles.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="alert"></div>
|
|
||||||
<div id="content">
|
|
||||||
<span class="spinner">
|
|
||||||
<span class="spinner__circle"></span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div id="popup"></div>
|
|
||||||
<script src="app.js"></script>
|
|
||||||
<script src="plugin/behaviors/index.js"></script>
|
|
||||||
<script src="plugin/packages/index.js"></script>
|
|
||||||
<script src="plugin/screen-diff/index.js"></script>
|
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FVWC4GKEYS"></script>
|
|
||||||
<script>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
gtag('config', 'G-FVWC4GKEYS', {
|
|
||||||
'allureVersion': 'dev',
|
|
||||||
'reportUuid': '11f7de32-d56f-4f6a-8e0d-17eadce2e355',
|
|
||||||
'single_file': false
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,206 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
allure.api.addTranslation('en', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Behaviors'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Features by stories',
|
|
||||||
showAll: 'show all'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('ru', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Функциональность'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Функциональность',
|
|
||||||
showAll: 'показать все'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('zh', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: '功能'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: '特性场景',
|
|
||||||
showAll: '显示所有'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('de', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Verhalten'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Features nach Stories',
|
|
||||||
showAll: 'Zeige alle'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('nl', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Functionaliteit'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Features en story’s',
|
|
||||||
showAll: 'Toon alle'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('he', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'התנהגויות'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'תכונות לפי סיפורי משתמש',
|
|
||||||
showAll: 'הצג הכול'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('br', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Comportamentos'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Funcionalidades por história',
|
|
||||||
showAll: 'Mostrar tudo'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('ja', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: '振る舞い'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'ストーリー別の機能',
|
|
||||||
showAll: '全て表示'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('es', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Funcionalidades'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Funcionalidades por Historias de Usuario',
|
|
||||||
showAll: 'mostrar todo'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('kr', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: '동작'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: '스토리별 기능',
|
|
||||||
showAll: '전체 보기'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('fr', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Comportements'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Thèmes par histoires',
|
|
||||||
showAll: 'Montrer tout'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('pl', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Zachowania'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Funkcje według historii',
|
|
||||||
showAll: 'pokaż wszystko'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('az', {
|
|
||||||
tab: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Davranışlar'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
widget: {
|
|
||||||
behaviors: {
|
|
||||||
name: 'Hekayələr üzrə xüsusiyyətlər',
|
|
||||||
showAll: 'hamısını göstər'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTab('behaviors', {
|
|
||||||
title: 'tab.behaviors.name', icon: 'fa fa-list',
|
|
||||||
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
|
|
||||||
onEnter: (function (testGroup, testResult, testResultTab) {
|
|
||||||
return new allure.components.TreeLayout({
|
|
||||||
testGroup: testGroup,
|
|
||||||
testResult: testResult,
|
|
||||||
testResultTab: testResultTab,
|
|
||||||
tabName: 'tab.behaviors.name',
|
|
||||||
baseUrl: 'behaviors',
|
|
||||||
url: 'data/behaviors.json',
|
|
||||||
csvUrl: 'data/behaviors.csv'
|
|
||||||
});
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
|
|
||||||
rowTag: 'a',
|
|
||||||
title: 'widget.behaviors.name',
|
|
||||||
baseUrl: 'behaviors',
|
|
||||||
showLinks: true
|
|
||||||
}));
|
|
||||||
@ -1,120 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
allure.api.addTranslation('en', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Packages'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('ru', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Пакеты'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('zh', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: '包'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('de', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Pakete'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('nl', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Packages'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('he', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'חבילות'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('br', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Pacotes'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('ja', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'パッケージ'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('es', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Paquetes'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('kr', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: '패키지'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('fr', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Paquets'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('pl', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Pakiety'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTranslation('az', {
|
|
||||||
tab: {
|
|
||||||
packages: {
|
|
||||||
name: 'Paketlər'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
allure.api.addTab('packages', {
|
|
||||||
title: 'tab.packages.name', icon: 'fa fa-align-left',
|
|
||||||
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
|
|
||||||
onEnter: (function (testGroup, testResult, testResultTab) {
|
|
||||||
return new allure.components.TreeLayout({
|
|
||||||
testGroup: testGroup,
|
|
||||||
testResult: testResult,
|
|
||||||
testResultTab: testResultTab,
|
|
||||||
tabName: 'tab.packages.name',
|
|
||||||
baseUrl: 'packages',
|
|
||||||
url: 'data/packages.json'
|
|
||||||
});
|
|
||||||
})
|
|
||||||
});
|
|
||||||
@ -1,200 +0,0 @@
|
|||||||
(function () {
|
|
||||||
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
|
|
||||||
|
|
||||||
function renderImage(src) {
|
|
||||||
return (
|
|
||||||
'<div class="screen-diff__container">' +
|
|
||||||
'<img class="screen-diff__image" src="' +
|
|
||||||
src +
|
|
||||||
'">' +
|
|
||||||
'</div>'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function findImage(data, name) {
|
|
||||||
if (data.testStage && data.testStage.attachments) {
|
|
||||||
var matchedImage = data.testStage.attachments.filter(function (attachment) {
|
|
||||||
return attachment.name === name;
|
|
||||||
})[0];
|
|
||||||
if (matchedImage) {
|
|
||||||
return 'data/attachments/' + matchedImage.source;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
|
|
||||||
if (type === 'diff') {
|
|
||||||
if (diffImage) {
|
|
||||||
return renderImage(diffImage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (type === 'overlay' && expectedImage) {
|
|
||||||
return (
|
|
||||||
'<div class="screen-diff__overlay screen-diff__container">' +
|
|
||||||
'<img class="screen-diff__image" src="' +
|
|
||||||
expectedImage +
|
|
||||||
'">' +
|
|
||||||
'<div class="screen-diff__image-over">' +
|
|
||||||
'<img class="screen-diff__image" src="' +
|
|
||||||
actualImage +
|
|
||||||
'">' +
|
|
||||||
'</div>' +
|
|
||||||
'</div>'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (actualImage) {
|
|
||||||
return renderImage(actualImage);
|
|
||||||
}
|
|
||||||
return 'No diff data provided';
|
|
||||||
}
|
|
||||||
|
|
||||||
var TestResultView = Backbone.Marionette.View.extend({
|
|
||||||
regions: {
|
|
||||||
subView: '.screen-diff-view',
|
|
||||||
},
|
|
||||||
template: function () {
|
|
||||||
return '<div class="screen-diff-view"></div>';
|
|
||||||
},
|
|
||||||
onRender: function () {
|
|
||||||
var data = this.model.toJSON();
|
|
||||||
var testType = data.labels.filter(function (label) {
|
|
||||||
return label.name === 'testType';
|
|
||||||
})[0];
|
|
||||||
var diffImage = findImage(data, 'diff');
|
|
||||||
var actualImage = findImage(data, 'actual');
|
|
||||||
var expectedImage = findImage(data, 'expected');
|
|
||||||
if (!testType || testType.value !== 'screenshotDiff') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.showChildView(
|
|
||||||
'subView',
|
|
||||||
new ScreenDiffView({
|
|
||||||
diffImage: diffImage,
|
|
||||||
actualImage: actualImage,
|
|
||||||
expectedImage: expectedImage,
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
var ErrorView = Backbone.Marionette.View.extend({
|
|
||||||
templateContext: function () {
|
|
||||||
return this.options;
|
|
||||||
},
|
|
||||||
template: function (data) {
|
|
||||||
return '<pre class="screen-diff-error">' + data.error + '</pre>';
|
|
||||||
},
|
|
||||||
});
|
|
||||||
var AttachmentView = Backbone.Marionette.View.extend({
|
|
||||||
regions: {
|
|
||||||
subView: '.screen-diff-view',
|
|
||||||
},
|
|
||||||
template: function () {
|
|
||||||
return '<div class="screen-diff-view"></div>';
|
|
||||||
},
|
|
||||||
onRender: function () {
|
|
||||||
jQuery
|
|
||||||
.getJSON(this.options.sourceUrl)
|
|
||||||
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
|
|
||||||
},
|
|
||||||
renderErrorView: function (error) {
|
|
||||||
console.log(error);
|
|
||||||
this.showChildView(
|
|
||||||
'subView',
|
|
||||||
new ErrorView({
|
|
||||||
error: error.statusText,
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
renderScreenDiffView: function (data) {
|
|
||||||
this.showChildView(
|
|
||||||
'subView',
|
|
||||||
new ScreenDiffView({
|
|
||||||
diffImage: data.diff,
|
|
||||||
actualImage: data.actual,
|
|
||||||
expectedImage: data.expected,
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
var ScreenDiffView = Backbone.Marionette.View.extend({
|
|
||||||
className: 'pane__section',
|
|
||||||
events: function () {
|
|
||||||
return {
|
|
||||||
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
|
|
||||||
'mousemove .screen-diff__overlay': 'onOverlayMove',
|
|
||||||
};
|
|
||||||
},
|
|
||||||
initialize: function (options) {
|
|
||||||
this.diffImage = options.diffImage;
|
|
||||||
this.actualImage = options.actualImage;
|
|
||||||
this.expectedImage = options.expectedImage;
|
|
||||||
this.radioName = 'screen-diff-type-' + this.cid;
|
|
||||||
},
|
|
||||||
templateContext: function () {
|
|
||||||
return {
|
|
||||||
diffType: settings.get('diffType'),
|
|
||||||
diffImage: this.diffImage,
|
|
||||||
actualImage: this.actualImage,
|
|
||||||
expectedImage: this.expectedImage,
|
|
||||||
radioName: this.radioName,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
template: function (data) {
|
|
||||||
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
'<h3 class="pane__section-title">Screen Diff</h3>' +
|
|
||||||
'<div class="screen-diff__content">' +
|
|
||||||
'<div class="screen-diff__switchers">' +
|
|
||||||
'<label><input type="radio" name="' +
|
|
||||||
data.radioName +
|
|
||||||
'" value="diff"> Show diff</label>' +
|
|
||||||
'<label><input type="radio" name="' +
|
|
||||||
data.radioName +
|
|
||||||
'" value="overlay"> Show overlay</label>' +
|
|
||||||
'</div>' +
|
|
||||||
renderDiffContent(
|
|
||||||
data.diffType,
|
|
||||||
data.diffImage,
|
|
||||||
data.actualImage,
|
|
||||||
data.expectedImage,
|
|
||||||
) +
|
|
||||||
'</div>'
|
|
||||||
);
|
|
||||||
},
|
|
||||||
adjustImageSize: function (event) {
|
|
||||||
var overImage = this.$(event.target);
|
|
||||||
overImage.width(overImage.width());
|
|
||||||
},
|
|
||||||
onRender: function () {
|
|
||||||
const diffType = settings.get('diffType');
|
|
||||||
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
|
|
||||||
'checked',
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
if (diffType === 'overlay') {
|
|
||||||
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onOverlayMove: function (event) {
|
|
||||||
var pageX = event.pageX;
|
|
||||||
var containerScroll = this.$('.screen-diff__container').scrollLeft();
|
|
||||||
var elementX = event.currentTarget.getBoundingClientRect().left;
|
|
||||||
var delta = pageX - elementX + containerScroll;
|
|
||||||
this.$('.screen-diff__image-over').width(delta);
|
|
||||||
},
|
|
||||||
onDiffTypeChange: function (event) {
|
|
||||||
settings.save('diffType', event.target.value);
|
|
||||||
this.render();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
|
|
||||||
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
|
|
||||||
View: AttachmentView,
|
|
||||||
icon: 'fa fa-exchange',
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
@ -1,30 +0,0 @@
|
|||||||
.screen-diff__switchers {
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-diff__switchers label + label {
|
|
||||||
margin-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-diff__overlay {
|
|
||||||
position: relative;
|
|
||||||
cursor: col-resize;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-diff__container {
|
|
||||||
overflow-x: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-diff__image-over {
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background: #fff;
|
|
||||||
position: absolute;
|
|
||||||
overflow: hidden;
|
|
||||||
box-shadow: 2px 0 1px -1px #aaa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-diff-error {
|
|
||||||
color: #fd5a3e;
|
|
||||||
}
|
|
||||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
|||||||
{"total":0,"items":[]}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"total":0,"items":[]}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{"failed":0,"broken":0,"skipped":0,"passed":0,"unknown":0,"total":0}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[{"data":{"run":0,"retry":0}}]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
[]
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"total":0,"items":[]}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"reportName":"Allure Report","testRuns":[],"statistic":{"failed":0,"broken":0,"skipped":0,"passed":0,"unknown":0,"total":0},"time":{}}
|
|
||||||
@ -1,11 +1,11 @@
|
|||||||
launch_status failed=0 1711488014000000000
|
launch_status failed=0 1711488915000000000
|
||||||
launch_status broken=0 1711488014000000000
|
launch_status broken=0 1711488915000000000
|
||||||
launch_status passed=0 1711488014000000000
|
launch_status passed=0 1711488915000000000
|
||||||
launch_status skipped=0 1711488014000000000
|
launch_status skipped=0 1711488915000000000
|
||||||
launch_status unknown=0 1711488014000000000
|
launch_status unknown=0 1711488915000000000
|
||||||
launch_time duration=0 1711488014000000000
|
launch_time duration=0 1711488915000000000
|
||||||
launch_time min_duration=0 1711488014000000000
|
launch_time min_duration=0 1711488915000000000
|
||||||
launch_time max_duration=0 1711488014000000000
|
launch_time max_duration=0 1711488915000000000
|
||||||
launch_time sum_duration=0 1711488014000000000
|
launch_time sum_duration=0 1711488915000000000
|
||||||
launch_retries retries=0 1711488014000000000
|
launch_retries retries=0 1711488915000000000
|
||||||
launch_retries run=0 1711488014000000000
|
launch_retries run=0 1711488915000000000
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
gtag('config', 'G-FVWC4GKEYS', {
|
gtag('config', 'G-FVWC4GKEYS', {
|
||||||
'allureVersion': 'dev',
|
'allureVersion': 'dev',
|
||||||
'reportUuid': 'b924f2f6-4eb7-4f4b-b3bd-02da5d180694',
|
'reportUuid': 'c1ac4149-ba90-47a0-b5ee-343b873413b4',
|
||||||
'single_file': false
|
'single_file': false
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user