UNPKG

cumulocity-cypress

Version:
19 lines (18 loc) 1.05 kB
import { Screenshot, ScreenshotOptions, ScreenshotSetup } from "../lib/screenshots/types"; import { C8yTestHierarchyTree } from "../shared/types"; export declare function getSelector(selector: any | string | undefined, predefined?: ScreenshotSetup["selectors"], language?: string): string | undefined; /** * Simple parser for parsing DOM selector components into an array * representing its sub-selectors. Its only used to get the individual * sub-selectors from a compound selector string without analyzing the * actual structure of the component. * @param {string} selector - The selector string to parse * @returns {string[]} - The selector components as an array */ export declare function parseSelector(selector: string): string[]; export declare function imageName(name: string, language?: string): string; export declare function buildTestHierarchyWithOptions(objects: (Screenshot & ScreenshotOptions)[], options: { tags?: string[]; titles?: string[]; images?: string[]; }): C8yTestHierarchyTree<Screenshot & ScreenshotOptions>;