@progress/kendo-e2e
Version:
Kendo UI end-to-end test utilities.
25 lines • 1.08 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.visualTestTemplate = visualTestTemplate;
function parentPath(level) {
return Array.from(Array(level)).map(() => '..').join('/');
}
function visualTestTemplate(markup, options) {
var _a;
const pathDepth = (_a = options === null || options === void 0 ? void 0 : options.pathDepth) !== null && _a !== void 0 ? _a : 3;
return `
<!doctype html>
<html lang="en" class="k-typography k-no-animations">
<head>
<title>${options === null || options === void 0 ? void 0 : options.title}</title>
<meta charset="utf-8" />
<link rel="stylesheet" data-role="kendo-theme" href="${parentPath(pathDepth + 2)}/packages/default/dist/all.css" />
<link rel="stylesheet" href="${parentPath(pathDepth)}/assets/styles.css" />
<script src="${parentPath(pathDepth)}/assets/scripts.js"></script>
</head>
<body>
${markup}
</body>
</html>`;
}
//# sourceMappingURL=visual-test-template.js.map
;