If using an APLA reprompt directive by calling addDirectiveToReprompt(), a future call to reprompt() removes all reprompt directives.
Motivation and Context
It should not matter the order in which reprompt() and addDirectiveToReprompt() are called through the ResponseBuilder.
This is related to the recent addition of #694
Testing
I updated the ResponseBuilder tests to contain both a reprompt outputSpeech as well as a directive. The order of the function calls in the tests are addDirectiveTooReprompt() first, then reprompt()
Screenshots (if appropriate)
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Docs(Add new document content)
[ ] Translate Docs(Translate document content)
Checklist
[x] My code follows the code style of this project
[ ] My change requires a change to the documentation
Description
If using an APLA reprompt directive by calling addDirectiveToReprompt(), a future call to reprompt() removes all reprompt directives.
Motivation and Context
It should not matter the order in which reprompt() and addDirectiveToReprompt() are called through the ResponseBuilder. This is related to the recent addition of #694
Testing
I updated the ResponseBuilder tests to contain both a reprompt outputSpeech as well as a directive. The order of the function calls in the tests are addDirectiveTooReprompt() first, then reprompt()
Screenshots (if appropriate)
Types of changes
Checklist
License