Description:
In v1.6.0, new features for handling sensitive input (sensitiveInput) and markup language (userBubble.dangerouslySetInnerHtml, botbubble.dangerousSetInnerHtml) have been added. It'll be great to add test cases to cover the following:
Add a new block to the existing flow in App.tsx that has isSensitive set to true. User input in textarea should be masked and when message is sent, chat bubble should also be masked.
Markup language is disabled by default, so attempts to sender <b>hello</b> or similar texts should result in an unformatted plain text string.
Note:
The current testing approach is not ideal, as it does not allow for varying the initial configuration (e.g. testing with markup language enabled instead). This can be supported if the <ChatBot/> inside App.tsx is wrapped by the custom BotOptionsContext and then external buttons are provided for varying configurations (selenium webdriver would then be used to interact with these buttons). Good to explore this down the line.
Description: In v1.6.0, new features for handling sensitive input (
sensitiveInput
) and markup language (userBubble.dangerouslySetInnerHtml
,botbubble.dangerousSetInnerHtml
) have been added. It'll be great to add test cases to cover the following:block
to the existing flow inApp.tsx
that hasisSensitive
set totrue
. User input in textarea should be masked and when message is sent, chat bubble should also be masked.<b>hello</b>
or similar texts should result in an unformatted plain text string.Similar approach can be referenced here: https://github.com/tjtanjin/react-chatbotify/issues/29
Note: The current testing approach is not ideal, as it does not allow for varying the initial configuration (e.g. testing with markup language enabled instead). This can be supported if the
<ChatBot/>
insideApp.tsx
is wrapped by the customBotOptionsContext
and then external buttons are provided for varying configurations (selenium webdriver would then be used to interact with these buttons). Good to explore this down the line.