UNPKG

@uuv/assistant

Version:

UUV Helper used to improve the life of testers and developers by generating cucumber phrases from the GUI.

24 lines (23 loc) 1.22 kB
/** * Software Name : UUV * * SPDX-License-Identifier: MIT * * This software is distributed under the MIT License, * see the "LICENSE" file for more details * * Authors: NJAKO MOLOM Louis Fredice & SERVICAL Stanley * Software description: Make test writing fast, understandable by any human * understanding English or French. */ import { Translator } from "./abstract-translator"; import { TranslateSentences } from "./model"; export declare class ExpectTranslator extends Translator { private buildResponse; getSentenceFromAccessibleRoleAndName(role: string, name: string): TranslateSentences; getSentenceFromAccessibleRoleAndNameAndContent(role: string, name: string, content: string): TranslateSentences; getSentenceFromDomSelector(domSelector: string, htmlElem?: HTMLElement | SVGElement): TranslateSentences; computeTableSentenceFromKeyNameAndContent(sentenceKey: string, indefiniteArticle: string, roleName: string, accessibleName: string, headers: HTMLElement, rows: HTMLElement[], cellRoleName: string): string; computeDialogSentenceFromKeyNameAndContent(sentenceKey: string, accessibleName: string, row: HTMLElement): Promise<string[]>; private formatMarkdownTable; }