The html shown in the success toast message needs to be safe to avoid XSS attacks
Check if the failure test message is safe otherwise it also needs to be fixed.