Tawmy/Leyla.Bot

QA: Quotes

Opened this issue · 0 comments

Tawmy commented

/quote show

  • Quote is correctly displayed if found -> public
  • Appropriate error is shown when quote with that index does not exist for user -> only to user

/quote list

  • List is correctly displayed if found -> only to user
  • List is truncated properly when longer than 4000 characters
  • Individual entries are truncated when long
  • Appropriate error is shown when user does not have any quotes -> only to user

/quote random

  • Shows quote properly -> public
  • Quotes are actually randomised
  • Appropriate error shown when no quotes exist -> only to user

/quote search

  • Results are shown correctly -> only to user
  • Results all actually include the search string
  • List is truncated properly when longer than 4000 characters
  • Individual entries are truncated when long
  • Appropriate error shown when no results found -> only to user

Message context menu: Add

  • Opens modal with exact text user sent
  • Quote is saved correctly when saving directly (test using (/quote list)
  • Quote is saved correctly when saving after editing the text (test using /quote list)
  • No error when cancelling in modal
  • Confirmation is shown after adding quote -> public

/quotem edit

  • Opens modal with exact text from given quote
  • No error when saving with same text
  • No error when cancelling in modal
  • Text is saved correctly when edited /test using /quote list)
  • Confirmation is shown after editing -> only for user

/quotem delete

  • Deletes given quote
  • Shows confirmation -> only for user