telegram-support-bot icon indicating copy to clipboard operation
telegram-support-bot copied to clipboard

Unit Tests / Integration Tests

Open bostrot opened this issue 2 years ago • 2 comments

We need testing to check for breaking changes.

Here is some stuff that has to be tested to close this issue:

  • [x] Start command
  • [x] Other static commands (faq, ...)
  • [x] Message to user
  • [x] Message from user
  • [ ] Image from user
  • [ ] File from user
  • [ ] Video from user
  • [ ] Image from staff
  • [ ] File from staff
  • [ ] Video from staff
  • [ ] Video/File/Image from staff with text (caption)
  • [ ] Video/File/Image from user with text (caption)
  • [x] Dynamic commands (open, close, ...)
  • [ ] No error in staff chat on start/stop/block/group block
  • [ ] add more here...

bostrot avatar Nov 20 '21 13:11 bostrot

It was possible to detect the following

After sending a file, image or video, the user sees a message - "sent", and his ticket number is added to it. Theoretically, this is not necessary for the user, but only for the employee.

After the employee sent the message to the user, the user previously saw the signature under the message, and now the word "Group".

I didn't find anything on the other items

kultpro avatar Nov 23 '21 18:11 kultpro

Thank you for the info! I opened this issue so we can track how far the automated testing is, which I want to implement at some point. So everytime we change something in the code it will test itself for those.

bostrot avatar Nov 23 '21 18:11 bostrot