@progress/kendo-e2e 2.3.0 → 2.5.0
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/dist/rendering/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -13,4 +27,5 @@ exports.specToHtml = specToHtml;
|
|
|
13
27
|
var html_comparer_1 = require("./html-comparer");
|
|
14
28
|
Object.defineProperty(exports, "compareHtml", { enumerable: true, get: function () { return html_comparer_1.compareHtml; } });
|
|
15
29
|
Object.defineProperty(exports, "getPartialHtml", { enumerable: true, get: function () { return html_comparer_1.getPartialHtml; } });
|
|
30
|
+
__exportStar(require("./matchers"), exports);
|
|
16
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rendering/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rendering/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,8DAAwC;AAEjC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,GAAG,EAAE,EAAU,EAAE;IACzD,OAAO,gBAAQ,CAAC,oBAAoB,CAChC,eAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CACzC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEF,iDAAsF;AAArD,4GAAA,WAAW,OAAA;AAAE,+GAAA,cAAc,OAAA;AAC5D,6CAA2B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CompereOptions } from "./html-comparer";
|
|
2
|
+
export declare function toMatchFromHtml(markup: string, expected: string, comparerOptions?: CompereOptions): {
|
|
3
|
+
pass: boolean;
|
|
4
|
+
message: any;
|
|
5
|
+
};
|
|
6
|
+
export declare function toMatchSpec(markup: string, spec: any, specOptions?: any, comparerOptions?: CompereOptions): {
|
|
7
|
+
pass: boolean;
|
|
8
|
+
message: any;
|
|
9
|
+
};
|
|
10
|
+
export declare function toMatchFromHtmlWithPassed(markup: string, passed: number, expected: string, comparerOptions?: CompereOptions): {
|
|
11
|
+
pass: boolean;
|
|
12
|
+
message: any;
|
|
13
|
+
};
|
|
14
|
+
export declare function toMatchSpecWithPassed(markup: string, passed: number, spec: any, specOptions?: any, comparerOptions?: CompereOptions): {
|
|
15
|
+
pass: boolean;
|
|
16
|
+
message: any;
|
|
17
|
+
};
|
|
18
|
+
export declare function generateReport({ comparerResult, passed }: {
|
|
19
|
+
comparerResult: any;
|
|
20
|
+
passed: any;
|
|
21
|
+
}): string;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateReport = exports.toMatchSpecWithPassed = exports.toMatchFromHtmlWithPassed = exports.toMatchSpec = exports.toMatchFromHtml = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
function toMatchFromHtml(markup, expected, comparerOptions) {
|
|
6
|
+
const result = (0, _1.compareHtml)(markup, expected, comparerOptions);
|
|
7
|
+
const pass = result.passed.length > 0 &&
|
|
8
|
+
result.missing.length === 0 &&
|
|
9
|
+
result.extra.length === 0;
|
|
10
|
+
return {
|
|
11
|
+
pass,
|
|
12
|
+
message: generateReport.bind(null, {
|
|
13
|
+
comparerResult: result,
|
|
14
|
+
}),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
exports.toMatchFromHtml = toMatchFromHtml;
|
|
18
|
+
function toMatchSpec(markup, spec, specOptions, comparerOptions) {
|
|
19
|
+
const expected = (0, _1.specToHtml)(spec, specOptions);
|
|
20
|
+
return toMatchFromHtml(markup, expected, comparerOptions);
|
|
21
|
+
}
|
|
22
|
+
exports.toMatchSpec = toMatchSpec;
|
|
23
|
+
function toMatchFromHtmlWithPassed(markup, passed = 0, expected, comparerOptions) {
|
|
24
|
+
const result = (0, _1.compareHtml)(markup, expected, comparerOptions);
|
|
25
|
+
const pass = result.passed.length === passed &&
|
|
26
|
+
result.missing.length === 0 &&
|
|
27
|
+
result.extra.length === 0;
|
|
28
|
+
return {
|
|
29
|
+
pass,
|
|
30
|
+
message: generateReport.bind(null, {
|
|
31
|
+
comparerResult: result,
|
|
32
|
+
passed: passed,
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.toMatchFromHtmlWithPassed = toMatchFromHtmlWithPassed;
|
|
37
|
+
function toMatchSpecWithPassed(markup, passed = 0, spec, specOptions, comparerOptions) {
|
|
38
|
+
const expected = (0, _1.specToHtml)(spec, specOptions);
|
|
39
|
+
return toMatchFromHtmlWithPassed(markup, passed, expected, comparerOptions);
|
|
40
|
+
}
|
|
41
|
+
exports.toMatchSpecWithPassed = toMatchSpecWithPassed;
|
|
42
|
+
function generateReport({ comparerResult, passed }) {
|
|
43
|
+
const allExpectedSelectors = comparerResult.expectedSelectors.reduce((acc, curr) => {
|
|
44
|
+
return [...acc, ...curr.split(" ")];
|
|
45
|
+
}, []);
|
|
46
|
+
const allActualSelectors = comparerResult.actualSelectors.reduce((acc, curr) => {
|
|
47
|
+
return [...acc, ...curr.split(" ")];
|
|
48
|
+
}, []);
|
|
49
|
+
const differentSelectors = findDifferences(comparerResult);
|
|
50
|
+
const extra = comparerResult.extra
|
|
51
|
+
.filter((sel) => differentSelectors.map((diff) => diff.actual).includes(sel) ===
|
|
52
|
+
false)
|
|
53
|
+
.map((selector) => {
|
|
54
|
+
const strippedSelector = stripSelector(selector, allExpectedSelectors);
|
|
55
|
+
return [strippedSelector, selector];
|
|
56
|
+
});
|
|
57
|
+
const missing = comparerResult.missing
|
|
58
|
+
.filter((sel) => differentSelectors
|
|
59
|
+
.map((diff) => diff.expected)
|
|
60
|
+
.includes(sel) === false)
|
|
61
|
+
.map((selector) => {
|
|
62
|
+
const strippedSelector = stripSelector(selector, allActualSelectors);
|
|
63
|
+
return [strippedSelector, selector];
|
|
64
|
+
});
|
|
65
|
+
const passedFailedMessage = passed && passed !== comparerResult.passed.length
|
|
66
|
+
? `| ${Colors.FgRed}Expected: ${Colors.Bright}${passed}${Colors.Reset}`
|
|
67
|
+
: "";
|
|
68
|
+
const passedMessage = `\n${Colors.FgYellow}Passed Selectors: ${comparerResult.passed.length} ${passedFailedMessage}`;
|
|
69
|
+
const differenceMessage = generateDifferencesMsg(differentSelectors) || "";
|
|
70
|
+
const extraMessage = genExtraMsg(extra) || "";
|
|
71
|
+
const missingMessage = genMissingMsg(missing) || "";
|
|
72
|
+
const separator = `${Colors.FgYellow + Colors.Dim}${"-".repeat(50)}${Colors.Reset}`;
|
|
73
|
+
const messages = [
|
|
74
|
+
passedMessage,
|
|
75
|
+
differenceMessage,
|
|
76
|
+
extraMessage,
|
|
77
|
+
missingMessage,
|
|
78
|
+
]
|
|
79
|
+
.map((msg) => msg ? `${msg}\n\n${Colors.FgYellow + Colors.Dim}${separator}` : "")
|
|
80
|
+
.join("\n");
|
|
81
|
+
return `${Colors.FgYellow}Spec Reporter:\n${separator}${messages}${Colors.Reset}`;
|
|
82
|
+
}
|
|
83
|
+
exports.generateReport = generateReport;
|
|
84
|
+
function findDifferences(comparerResult) {
|
|
85
|
+
const differentSelectors = [];
|
|
86
|
+
let actualIdx = 0;
|
|
87
|
+
let expectedIdx = 0;
|
|
88
|
+
while (actualIdx < comparerResult.actualSelectors.length &&
|
|
89
|
+
expectedIdx < comparerResult.expectedSelectors.length) {
|
|
90
|
+
if (comparerResult.extra.includes(comparerResult.actualSelectors[actualIdx]) &&
|
|
91
|
+
comparerResult.missing.includes(comparerResult.expectedSelectors[expectedIdx])) {
|
|
92
|
+
differentSelectors.push(compareSelectors([
|
|
93
|
+
comparerResult.actualSelectors[actualIdx],
|
|
94
|
+
comparerResult.expectedSelectors[expectedIdx],
|
|
95
|
+
]));
|
|
96
|
+
actualIdx++;
|
|
97
|
+
expectedIdx++;
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (comparerResult.extra.includes(comparerResult.actualSelectors[actualIdx])) {
|
|
101
|
+
actualIdx++;
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if (comparerResult.missing.includes(comparerResult.expectedSelectors[expectedIdx])) {
|
|
105
|
+
expectedIdx++;
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
actualIdx++;
|
|
109
|
+
expectedIdx++;
|
|
110
|
+
}
|
|
111
|
+
return differentSelectors;
|
|
112
|
+
}
|
|
113
|
+
function compareSelectors([actual, expected]) {
|
|
114
|
+
const actualParts = actual.split(" ");
|
|
115
|
+
const expectedParts = expected.split(" ");
|
|
116
|
+
const differentSelectors = actualParts.reduce((acc, curr, idx) => {
|
|
117
|
+
if (curr !== expectedParts[idx]) {
|
|
118
|
+
return [...acc, [curr, expectedParts[idx]]];
|
|
119
|
+
}
|
|
120
|
+
return acc;
|
|
121
|
+
}, []);
|
|
122
|
+
return {
|
|
123
|
+
actual,
|
|
124
|
+
expected,
|
|
125
|
+
differences: {
|
|
126
|
+
actual: differentSelectors.map((diff) => diff[0]),
|
|
127
|
+
expected: differentSelectors.map((diff) => diff[1]),
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function stripSelector(selector, selectors) {
|
|
132
|
+
return selector.split(" ").reduce((acc, curr) => {
|
|
133
|
+
if (selectors.includes(curr)) {
|
|
134
|
+
return acc;
|
|
135
|
+
}
|
|
136
|
+
return curr;
|
|
137
|
+
}, "");
|
|
138
|
+
}
|
|
139
|
+
function genExtraMsg(extra) {
|
|
140
|
+
if (extra.length > 0) {
|
|
141
|
+
return `${Colors.FgYellow}Extra Selectors Found:
|
|
142
|
+
|
|
143
|
+
${extra
|
|
144
|
+
.map(([strippedSelector, extraSelector]) => `${Colors.Dim + Colors.FgYellow}${extraSelector.replace(strippedSelector, `${Colors.Reset}${Colors.Bright}${Colors.FgRed}${strippedSelector}`)}`)
|
|
145
|
+
.join("\n\n")}`;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function genMissingMsg(missing) {
|
|
149
|
+
if (missing.length > 0) {
|
|
150
|
+
return `${Colors.FgYellow}Missing Selectors Found:
|
|
151
|
+
|
|
152
|
+
${missing
|
|
153
|
+
.map(([strippedSelector, missingSelector]) => `${Colors.Dim + Colors.FgYellow}${missingSelector.replace(strippedSelector, `${Colors.Reset}${Colors.Bright}${Colors.FgRed}${strippedSelector}`)}`)
|
|
154
|
+
.join("\n\n")}`;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function generateDifferencesMsg(differentSelectors) {
|
|
158
|
+
if (differentSelectors.length > 0) {
|
|
159
|
+
return `${Colors.FgYellow}Different Selectors Found (Actual/Expected):
|
|
160
|
+
${differentSelectors
|
|
161
|
+
.map((diff) => `
|
|
162
|
+
${Colors.Dim}${decorateParts(diff.actual, diff.differences.actual, Colors.FgRed)}
|
|
163
|
+
${Colors.Dim}${decorateParts(diff.expected, diff.differences.expected, Colors.FgYellow)}
|
|
164
|
+
`)
|
|
165
|
+
.join("\n-----")}`;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function decorateParts(selector, parts, color) {
|
|
169
|
+
let result;
|
|
170
|
+
parts.forEach((part) => {
|
|
171
|
+
result = selector.replace(part, `${Colors.Reset}${Colors.Bright}${color}${part}${Colors.Dim}${Colors.FgYellow}`);
|
|
172
|
+
});
|
|
173
|
+
return result;
|
|
174
|
+
}
|
|
175
|
+
const Colors = {
|
|
176
|
+
Reset: "\x1b[0m",
|
|
177
|
+
Bright: "\x1b[1m",
|
|
178
|
+
Dim: "\x1b[2m",
|
|
179
|
+
Underscore: "\x1b[4m",
|
|
180
|
+
Blink: "\x1b[5m",
|
|
181
|
+
Reverse: "\x1b[7m",
|
|
182
|
+
Hidden: "\x1b[8m",
|
|
183
|
+
FgBlack: "\x1b[30m",
|
|
184
|
+
FgRed: "\x1b[31m",
|
|
185
|
+
FgGreen: "\x1b[32m",
|
|
186
|
+
FgYellow: "\x1b[33m",
|
|
187
|
+
FgBlue: "\x1b[34m",
|
|
188
|
+
FgMagenta: "\x1b[35m",
|
|
189
|
+
FgCyan: "\x1b[36m",
|
|
190
|
+
FgWhite: "\x1b[37m",
|
|
191
|
+
FgGray: "\x1b[90m",
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=matchers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchers.js","sourceRoot":"","sources":["../../src/rendering/matchers.ts"],"names":[],"mappings":";;;AAAA,wBAA4C;AAG5C,SAAgB,eAAe,CAC3B,MAAc,EACd,QAAgB,EAChB,eAAgC;IAEhC,MAAM,MAAM,GAAG,IAAA,cAAW,EAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;IAC9D,MAAM,IAAI,GACN,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;QACxB,MAAM,CA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