Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.77 KB

TESTING.md

File metadata and controls

36 lines (29 loc) · 1.77 KB

Testing

TODO: Automated testing

At the moment, this extension does not have any automated tests. However, we can still track manual test scripts.

Manual Test: Save/Load Mailing

  1. Create a mailing
  2. Navigate to "Mailings => New Mailing" (civicrm/a/#/mailing/new or civicrm/a/#/mailing/new/mosaico)
  3. Observe: Redirect to civicrm/a/#/mailing/123 and open with Mosaico layout
  4. Enter a mailing name. (Make a mental note of the name.)
  5. Under "Design", choose a template.
  6. Observe: A dialog opens with Mosaico.
  7. Create a block. Edit some text. (Make a mental note of the content.)
  8. Save.
  9. Immediately re-edit
  10. Under "Design", open the template again.
  11. Observe: A dialog opens with Mosaico. It restores the content from before.
  12. Save or close
  13. Try a full reload
  14. Navigate to "Mailings => Draft and Unscheduled"
  15. Find your mailing. Click "Continue".
  16. Under "Design", open the template again.
  17. Observe: A dialog opens with Mosaico. It restores the content from before.

Manual Test: Tokens

This extension defines a TinyMCE plugin called "civicrmtoken". To test this plugin, create a mailing with a block of content. Then try each of the following:

  1. Edit a paragraph. In the toolbar, click the token dropdown and see a hotlist of 3-5 tokens. Pick one. Observe the new token in the paragraph.
  2. Edit a paragraph. In the toolbar, click the token icon and see a dialog. Pick one. Observe the new token in the paragraph.
  3. Edit a paragraph. Press Ctrl-Shift-T and see a dialog. Enter a filter and pick a token using the keyboard. Observe the new token in the paragraph.
  4. Edit a heading or button. Ensure that the the token icon/dropdown/hotkey work as expected. Observe the new token in the heading or button.