[Koha-bugs] [Bug 27378] Enable compliance with EU Cookie Legislation via cookie consent

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 5 15:57:27 CET 2021


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

--- Comment #20 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
REVISED TEST PLAN
-----------------

Note: As part of this test plan you will be required to remove a value from
your browser's local storage store, we use this for storing a browser's cookie
consent choice. To remove this value when instructed to do so, do the
following:

Chrome / Edge
------
- Press F12
- Click the "Application" tab
- On the left, expand the "Local Storage" section
- Find the entry that corresponds with the URL of your Koha and click on it
- Find the entry in the list with a "Key" of "cookieConsent"
- Click on it and press "Delete" on your keyboard

Firefox
-------
- Press F12
- Click the "Storage" tab
- On the left, expand the "Local Storage" section
- Find the entry that corresponds with the URL of your Koha and click on it
- Find the entry in the list with a "Key" of "cookieConsent"
- Click on it and press "Delete" on your keyboard

Note: Also you will be required to inspect cookies set in your browser. When
instructed to do so, do the following:

Chrome / Edge
------
- Press F12
- Click the "Application" tab
- On the left, expand the "Cookies" section
- Find the entry that corresponds with the URL of your Koha and click on it
- View the list of cookies

Firefox
-------
- Press F12
- Click the "Storage" tab
- On the left, expand the "Cookies" section
- Find the entry that corresponds with the URL of your Koha and click on it
- View the list of cookies


1. Ensure you have a tab open on the intranet view and one open on the OPAC
view, ensure you are logged in on both
2. Search for "consent" in the sysprefs
=> TEST: Observe there are 4 new sysprefs:
  - "ConsentJS"
  - "CookieConsent"
  - "CookieConsentBar"
  - "CookieConsentPopup"
3. Change the value for the "CookieConsent" syspref to "Require"
4. Refresh the intranet page
=> TEST: In the intranet view, observe that a cookie consent bar appears at the
bottom of the page with just a single "Accept all cookies" button
5. Refresh the OPAC page
=> TEST: In the OPAC view, observe that a cookie consent bar appears at the
bottom of the page with just a single "Accept all cookies" button
6. Add some text to the "CookieConsentBar" syspref, this can be HTML if you
wish
7. Refresh the intranet page
=> TEST: In the intranet view, observe that the cookie consent bar appears at
the bottom of the page containing the text you specified
8. Refresh the OPAC page
=> TEST: In the OPAC view, observe that the cookie consent bar appears at the
bottom of the page containing the text you specified
9. Add some text to the "CookieConsentPop" syspref, this can be HTML if you
wish
10. Click the "ConsentJS" syspref input
11. Click the "Add new code" link
12. Enter a name and description, and check both checkboxes. For "String used
to identify cookie name", enter "test1", this enables us to delete the cookie
when consent is withdrawn.
13. Click the "Click to expand" link
14. Enter the following Javascript:
    (function() { console.log('Hello from test1'); document.cookie =
'test1=testing'; })()
15. Repeat steps 11 to 14 twice more, substituting "test1" for "test2" &
"test3"
16. Click "Save"
17. Refresh the intranet page
=> TEST: In the intranet view, observe that the cookie consent bar appears at
the bottom of the page containing 3 buttons
18. Refresh the OPAC page
=> TEST: In the OPAC view, observe that the cookie consent bar appears at the
bottom of the page containing 3 buttons
19. Click the "More information" button
=> TEST: Observe that a cookie consent popup is displayed listing the codes you
added in the syspref, displaying the name,description and checkbox for each,
allowing a code to be selected
20.- Select a code
=> TEST: Observe that "Accept selected non-essential cookies" is enabled
21. Deselect all codes
=> TEST: Observe that "Accept selected non-essential cookies" is disabled
22. Open the developer tools for your browser (usually F12) and ensure you are
viewing the Javascript console
23. Click accept all cookies
=> TEST: In the Javascript console, observe that the messages in all the codes
you added to the ConsentJS syspref are displayed
=> TEST: In the cookie list (as detailed at the top of the test plan) observe
that the cookies corresponding with the consents granted have been set.
24. Navigate to any other pages in the OPAC
=> TEST: On each page load, in the Javascript console, observe that the
messages in all the codes you added to the ConsentJS syspref are displayed
25. Remove the cookieConsent local storage (as detailed at the start)
26. Switch to the intranet view
27. Repeat steps 19-25 in the intranet view
28. Refresh the page
29. Click the "Accept all cookies" button on the cookie bar
=> TEST: In the Javascript console, observe that the messages in all the codes
you added to the ConsentJS syspref are displayed
30. Remove the cookieConsent local storage (as detailed at the start)
31. Refresh the page
32. Click the "Accept only essential cookies" button on the cookie bar
=> TEST: In the Javascript console, observe that none of the messages in the
codes you added to the ConsentJS syspref are displayed
33. Remove the cookieConsent local storage (as detailed at the start)
34. Refresh the page
35. Click the "More information" button on the cookie bar
36. Select two of the codes you defined in the ConsentJS syspref
37. Click the "Accept selected non-essential cookies" button
=> TEST: In the Javascript console, observe that only the messages from the
selected codes you added to the ConsentJS syspref are displayed
38. Repeat steps 28-37 on the OPAC view
39. In the OPAC view, go to the "Your account" page
=> TEST: Observe that the "your consents" option is available
40. Click on "your consents"
=> TEST: Observe that a "Cookie consents" section is displayed, with a button
41. Click the "View your cookie consents" button
=> TEST: Observe that the "Cookie consent" popup is displayed allowing you to
modify your cookie consents
42. Remove consent from at least one cookie, click Save
=> TEST: In the cookie list in your browser (as detailed at the top of the test
plan), observe that any cookies you removed consent from have either been
removed or have no value.
43. Log out of the OPAC
=> Observe that a "Your cookies" button is displayed in the top bar next to
"Links"
44. Click the "Your cookies" button
=> TEST: Observe that the "Cookie consent" popup is displayed allowing you to
modify your cookie consents

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list