If a user message is both transformed and blocked, then the transformed message will not show at all after a refresh or after switching levels.
Reproduction steps
Steps to reproduce the behaviour:
Go to sandbox mode
Activate XML tagging
Activate character limit defence
Send a long chat message which will trigger the character limit defence
Wait for the reply
See that there's the original user message, the transformed user message, and the bot blocked message
Refresh the page OR switch levels
No transformed message
Expected behaviour
The transformed message is still shown after the refresh or switching levels.
Screenshots
Before refreshing or switching levels:
After:
Software (please complete the following information):
Browser: Edge
Additional context
Could be related to #741
Acceptance criteria
GIVEN a message has been transformed (e.g. the user activates xml tagging and sends a message)
AND blocked
WHEN the page is refreshed
THEN the transformed message is still shown (below the original message)
GIVEN a message has been transformed (e.g. the user activates xml tagging and sends a message)
AND blocked
WHEN the user switches level and then back to the original level
THEN the transformed message is still shown (below the original message)
Bug report
Description
If a user message is both transformed and blocked, then the transformed message will not show at all after a refresh or after switching levels.
Reproduction steps
Steps to reproduce the behaviour:
Expected behaviour
The transformed message is still shown after the refresh or switching levels.
Screenshots
Before refreshing or switching levels:
After:
Software (please complete the following information):
Additional context
Could be related to #741
Acceptance criteria
GIVEN a message has been transformed (e.g. the user activates xml tagging and sends a message) AND blocked WHEN the page is refreshed THEN the transformed message is still shown (below the original message)
GIVEN a message has been transformed (e.g. the user activates xml tagging and sends a message) AND blocked WHEN the user switches level and then back to the original level THEN the transformed message is still shown (below the original message)