Testing
[Drupal] What are possible test cases while testing nodequeue module in Drupal
Nodequeue is a module in Drupal which allows users to enlist, remove, arrange and display a queue of nodes. It has a drag-and-drop interface which facilitates the manual re-ordering of the queue. Even without the edit permissions to nodes, users are allowed to add and remove nodes from the queue. This module is usually used on sites which have features that allow users to manually control the order of display of nodes.
Here are the test cases/ checklists I documented while testing the nodequeue module on a site:
- Ensure that all user roles who have permission to re-arrange nodes have a link on the node page to add that node to the queue. Also ensure that other user roles donot have this option.
- Ensure that on clicking the 'add to queue' link on the node page, the node gets added on the block that is associated with the nodequeue.
- Ensure that the queue count increases/decreases when we add/ remove nodes from nodequeue.
- Ensure that the changes made on the node page gets reflected on the display of node on the nodequeue/associated display areas.
- Ensure that all permitted user roles can rearrange the nodes (drag and drop) and this reflects on the display area.
- Ensure that the deleted nodes gets removed from the display area.
- Ensure that by default no nodes get added in the display area.
- Ensure that no node can be added in the display area once it exceeds the nodequeue limit and that the user is warned about the limit.