Skip to content
Permalink
Browse files

Add automatic conversion of UI Elements without input actions to UI L…

…iterals
  • Loading branch information...
thiagodp committed Jun 19, 2019
1 parent ef5f13e commit 9861f40dbf3484273ce67482743d0310f6655485
Showing with 14 additions and 0 deletions.
  1. +4 −0 dist/modules/testscenario/PreTestCaseGenerator.js
  2. +10 −0 modules/testscenario/PreTestCaseGenerator.ts
@@ -128,6 +128,10 @@ class PreTestCaseGenerator {
if (TypeChecking_1.isDefined(inputDataActionEntity) && (this.hasValue(step) || this.hasNumber(step))) {
this.replaceUIElementsWithUILiterals([step], language, langContent, ctx, UIElementReplacementOption.JUST_INPUT_ACTIONS);
}
// # (NEW-2019-06-19) Replace UI ELEMENTS without input actions and values by UI LITERALS
else {
this.replaceUIElementsWithUILiterals([step], language, langContent, ctx, UIElementReplacementOption.NO_INPUT_ACTIONS);
}
}
// console.log( 'AFTER' );
// console.log( newSteps.map( ( e ) => e.content ) );
@@ -168,6 +168,16 @@ export class PreTestCaseGenerator {
UIElementReplacementOption.JUST_INPUT_ACTIONS
);
}
// # (NEW-2019-06-19) Replace UI ELEMENTS without input actions and values by UI LITERALS
else {
this.replaceUIElementsWithUILiterals(
[ step ],
language,
langContent,
ctx,
UIElementReplacementOption.NO_INPUT_ACTIONS
);
}
}

// console.log( 'AFTER' );

0 comments on commit 9861f40

Please sign in to comment.
You can’t perform that action at this time.