Below is a list of scenarios that need to be tested to make sure that watches are working properly.
Last tested
- Date:
- By who:
- Branch/Revision number:
Setting up the site for testing
- For this test plan, you will need a user whose email address is different from the site's admin.We will call those users the watcher and the admin.
- Since you will need to switch frequently from wacher to admin or vice-versa, we recommend that you use different browsers (ex: IE and Firefox) for each user (in Tiki, only one user can be logged in with a browser, even if you open different windows of that browser).
- Reinstall the DB, using Barebones profile.
- Create a user watcher and make sure to specify his email address, and that this address is different from that of the site admin.
- Login as admin and create a group WatchersGroup.
- Put user watcher in the group.
- Enable user watches feature
- TODO: Need instructions for that
- Give group WatchersGroup permissions to use watches
- TODO: Need instructions for that
- Enable group watches feature.
- Enable group watches
- TODO: Need instructions for that
No watches at all
- Login as watcher, and make sure that you are not watching the home page of the site, i.e. that you see an eye icon at the top, and that it DOES NOT HAVE A RED X across it, or that it DOES HAVE A DO NOT ENTER sign at the bottom right.
- Login at the admin
- Change the home page by adding the line: "This edit should not cause a notification, cause Watcher is not watching the page."
- Make sure you save it as a MAJOR change (NOT MINOR).
- Wait 2 minutes, go to the email reader of watcher, and make sure that it has not received a change notification.
- Login as admin, and make this change to the home page:
- "This change should not send a notificaiton, for two reaons: 1) no watches on the page, 2) saved as a a minor change"
- This time, save it as a MINOR change.
- Wait 2 minutes, go to the email reader of watcher, and make sure that it has not received a change notification.
User watch
- Login as the watcher, and make sure you are watching the home page of the site.
- In other words, click on the eye icon until either it has a red X across it, or a green checkmark at the bottom.
- Login as the admin and make sure that there is no group watch on thhe home page:
- Click on the group watch icon (eye with a bunch of people beside it) and make sure that no group is listed as watching the page.
- Still as amdin, add the following line on the home page:
- "This addition should result in a notification cause user is watching the page."
- Go to the watcher's email reader, and make sure he received a notification, where the diff shows the above line.
- Login as admin, and make this change to the home page:
- "This change should not send a notificaiton, eventhough user is watching the page. Reason is: change saved as a a minor change"
- This time, save it as a MINOR change.
- Wait 2 minutes, go to the email reader of watcher, and make sure that it has not received a change notification.
Group watch
- Login as watcher and make sure you are not watching the home page.
- Login as admin and set a group watch on the home page for group WatchersGroup_
- Click on the icon showing an eye with multiple pepople beside it.
- Click on WatchersGroup group.
- Still as admin, modify the home page to add this line:
- "This change should send a notification, eventhough user watcher is not watching the page. Reason: there is a group watch on that page."
- Go to the watcher's email inbox, and make sure he got a notification with the diff consisting of the above addition.
- Login as admin, and make this change to the home page:
- "This change should not send a notificaiton, eventhough there is a group watch on it. Reason is: change saved as a a minor change"
- This time, save it as a MINOR change.
- Wait 2 minutes, go to the email reader of watcher, and make sure that it has not received a change notification.
Both group and user watch
- Login as watcher, and make sure you are watching the home page.
- Loginn as admin and make sure that there is a group watch for WatchersGroup on the home page.
- Still as admin, add the following line to home page:
- "This change should result in a single notification, eventhough user is watching the page through both a user and a group watch"
- Go to the watcher's email reader, and make sure he received a SINGLE notification, where the diff shows the above line.
- Note: Make sure that he did not receive two notifications for the same change.
Watching through two group watches
- Login as watcher, and make sure you are not watching the home page.
- Login as admin and create a new group _WatchersGroup2__.
- Add watcher user to it.
- Still as admin, go to the home page, and set group watches for both groups WatcherGroup and WatchersGroup2.
- Still as admin, add the following line to home page:
- "This change should result in a single notification, eventhough user is watching the page through two group watches"
- Go to the watcher's email reader, and make sure he received a SINGLE notification, where the diff shows the above line.
- Note: Make sure that he did not receive two notifications for the same change.