UNPKG

@progress/kendo-e2e

Version:

Kendo UI end-to-end test utilities.

28 lines (27 loc) 1.12 kB
import type { NodeDiff, Result, HtmlReportOptions } from "./html-comparer"; export type FullDomNode = { tagName: string; classes: string[]; classSelector: string; attributes: Array<{ name: string; value: string; }>; children: FullDomNode[]; }; type FullDiffNode = { status: 'matched' | 'different' | 'extra' | 'missing'; actualNode?: FullDomNode; expectedNode?: FullDomNode; matchedClasses: string[]; extraClasses: string[]; missingClasses: string[]; children: FullDiffNode[]; }; export declare function buildFullDomTree(html: string): FullDomNode[]; export declare function diffFullTrees(actual: FullDomNode[], expected: FullDomNode[]): FullDiffNode[]; export declare function renderFullTreeCode(nodes: FullDiffNode[], side: 'expected' | 'actual', depth?: number): string; export declare function renderHtmlDiffTree(nodes: NodeDiff[]): string; export declare function renderSideTree(nodes: NodeDiff[], side: 'actual' | 'expected'): string; export declare function buildHtmlReportContent(result: Result, options: HtmlReportOptions): string; export {};