Skip to content

Commit

Permalink
Add automatic conversion of UI Elements without input actions to UI L…
Browse files Browse the repository at this point in the history
…iterals
  • Loading branch information
thiagodp committed Jun 19, 2019
1 parent ef5f13e commit 9861f40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/modules/testscenario/PreTestCaseGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down
10 changes: 10 additions & 0 deletions modules/testscenario/PreTestCaseGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 9861f40

Please sign in to comment.