https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35267
--- Comment #152 from Martin Renvoize (ashimema) <[email protected]> --- Updated Test Plan # Test plan ## Setup 1) Apply patches and run database updates 2) Verify that 'NoticeCSS' and 'SlipCSS' have been renamed to 'EmailNoticeStylesheet' and 'PrintSlipStylesheet' in Admin > System preferences > Tools > Notices and slips 3) Confirm that 'AllNoticeCSS', 'EmailNoticeCSS', 'PrintNoticeCSS' and 'PrintSlipCSS' are present in the same location ## UI — Accordion display 1) Go to Tools > Notices and Slips, edit any notice 2) Confirm a 'Global HTML Notice Styles' section is present near the top with four collapsible panels: - All Notice CSS - Email Notice CSS - Print Notice CSS - Print Slip CSS 3) Each empty panel should show "None defined" 4) If you have syspref admin rights, each panel should show an 'Edit' shortcut link ## Adding styles 1) Add to 'AllNoticeCSS': .alltest { color: red } 2) Add to 'EmailNoticeCSS': .emailtest { color: green } 3) Add to 'PrintNoticeCSS': .printtest { color: orange } 4) Confirm all four accordion panels now show their CSS content ## Notice template Edit the WELCOME notice HTML template to include: ```html <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> Queuing test notices (using patron 'Henry A') 1. Remove Henry's email address; queue a Welcome print notice via More > Send welcome 2. Add a primary email for Henry; queue a Welcome email notice via More > Send welcome 3. On Henry's Notices tab, click the print notice title — confirm red and orange text are shown, green is not 4. Click the email notice title — confirm red and green text are shown, orange is not gather_print_notices.pl — HTML output 1. Run: gather_print_notices.pl --output html 2. Open the generated HTML file 3. Confirm a block containing the AllNoticeCSS rules is present in the 4. Confirm a block containing the PrintNoticeCSS rules is present in the 5. Confirm the notice content renders with the correct colors (red for .alltest, orange for .printtest) -- 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/
