At the moment, this extension does not have any automated tests. However, we can still track manual test scripts.
- Create a mailing
- Navigate to "Mailings => New Mailing" (
civicrm/a/#/mailing/new
orcivicrm/a/#/mailing/new/mosaico
) - Observe: Redirect to
civicrm/a/#/mailing/123
and open with Mosaico layout - Enter a mailing name. (Make a mental note of the name.)
- Under "Design", choose a template.
- Observe: A dialog opens with Mosaico.
- Create a block. Edit some text. (Make a mental note of the content.)
- Save.
- Immediately re-edit
- Under "Design", open the template again.
- Observe: A dialog opens with Mosaico. It restores the content from before.
- Save or close
- Try a full reload
- Navigate to "Mailings => Draft and Unscheduled"
- Find your mailing. Click "Continue".
- Under "Design", open the template again.
- Observe: A dialog opens with Mosaico. It restores the content from before.
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:
- 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.
- Edit a paragraph. In the toolbar, click the token icon and see a dialog. Pick one. Observe the new token in the paragraph.
- 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.
- 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.