Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port: [#4270] Choice options separator should be multi language (#6366) #4293

Merged
merged 4 commits into from
Jul 25, 2022

Conversation

sw-joelmut
Copy link
Collaborator

Fixes #4270

Description

This PR updates the ChoiceOptions to support LG allowing to define different template expressions for each language.
It also adds unit tests to cover the new code.

Specific Changes

  • Updated ConfirmInput and ChoiceInput to get the choice options from an expression.
  • Added the new class ChoiceOptionsSet containing the bind method to map the LG expression into a ChoiceFactoryOptions object.
  • Updated ChoiceInput and ConfirmInput schemas.
  • Added new tests in ActionTests class:
    • Action_ChoicesWithChoiceOptions.test.dialog
    • Action_ChoicesWithChoiceOptionsTemplate.test.dialog
    • Action_ConfirmInputWithChoiceOptions.test.dialog
    • Action_ConfirmInputWithChoiceOptionsTemplate.test.dialog
  • Added new test file choiceOptionsSet.test.js containing all the tests related to the ChoiceOptionsSet class.

Testing

The following images show the separator working as expected and the new unit tests.
imagen
imagen

@sw-joelmut sw-joelmut requested a review from a team as a code owner July 22, 2022 14:40
@tracyboehrer tracyboehrer merged commit 2bb7475 into main Jul 25, 2022
@tracyboehrer tracyboehrer deleted the southworks/add/choice-options-set branch July 25, 2022 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

port: [#5766] Choice options separator should be multi language (#6366)
2 participants