Loading...
 
Skip to main content

History: Test Plan: Watches

Source of version: 3 (current)

Copy to clipboard
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.


Show PHP error messages