UNPKG

@uuv/assistant

Version:

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

45 lines (44 loc) 1.26 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. */ export declare class Suggestion { accessibleAttribute: string; accessibleValue: string; code: string; sentenceAfterCorrection: string[]; constructor(accessibleAttribute?: string, accessibleValue?: string, code?: string, sentenceAfterCorrection?: string[]); } export type BaseSentence = { key: string; description: string; wording: string; }; export type EnrichedSentence = { key: string; wording: string; }; export declare enum StepCaseEnum { WHEN = "When", THEN = "Then", GIVEN = "Given", AND = "And" } export type StepSentence = { keyword: StepCaseEnum; sentence: string; }; export type TranslateSentences = { suggestion: Suggestion | undefined; steps: StepSentence[]; }; export declare function getSentencesAsStringArray(translatedSentence: TranslateSentences | null): string[]; export declare function getStepAsString(step: StepSentence): string;