https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35267

--- Comment #24 from Martin Renvoize (ashimema) 
<[email protected]> ---
# Test plan
This is going to be a fun road to travel.

## UI
1) Apply patches and run database updates
2) Note that 'NoticeCSS' and 'SlipCSS' have been renamed to
'EmailNoticeStylesheet' and 'PrintSlipStylesheet' to better reflect their
content and both have been migrated into 'Admin > System preferences > Tools >
Notices and slips'
3) Note in the same location in system preferences, we now also have
'EmailNoticeCSS', 'PrintNoticeCSS' and 'PrintSlipCSS' preferences that allow
direct entry of CSS rules for their respective notice message transports.
4) Under 'Tools > Notices and Slips', edit a notice and note we have a new
accordion near the top of the page that displays the content of 'AllNoticeCSS',
'EmailNoticeCSS', 'PrintNoticeCSS' and 'PrintSlipCSS' preferences for the end
users reference
4a) If the user has administrative permissions, they should also see an 'Edit'
button that's a shortcut the the relevant preference in the system preferences

## Adding styles
1) Add a simple style for testing to 'AllNoticeCSS'
   `.alltest { color: red }`
2) Add a simple style for testing to 'EmailNoticeCSS'
   `.emailtest { color: green }`
3) Add a simple style for testing to 'PrintNoticeCSS'
   `.printtest { color: organge }`
4) Let use the WELCOME notice for testing.. add a simple html template as
follows.
```
<p>
    This is a notice for testing</br>
    <span class="alltest">All message transport types should display this
red</span><br>
    <span class="emailtest">Only email notices should display this
green</span></br>
    <span class="printtest">Only print notices should display this
orange</span><br>
    All done
</p>
```
5) Lets use 'Henry A' to test the notice
5a) Do NOT set an email address for Henry
5b) Queue a 'Welcome' print notice using 'More > Send welcome'
5c) Add a primary email address for Henry
5d) Queue a 'Welcome' email notice using 'More > Send welcome'
6) Navigate to the 'Notices' tab for Henry
7) Click the title of the print notice to display a preview and note the
correct colors are displayed
8) Click the title of the email notice to display a preview and note the
correct colors are displayed

## Testing the functionality
1) Run 'gather_print_notices.pl' with options to output to html file
2) Confirm that the generated notice contains the correct classes and styles
3) Enable 'ManageNotices' preference from the dependency bug
4) Navigate to 'Tools > Mange notices'
5) Select both notices and print using the bottom button
6) Confirm that the two notices display the different colors and are on two
separate pages in the print preview.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to