[Drupal] What are possible test cases while testing nodequeue module in Drupal

| | 2 min read

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:

  1. 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.
  2. 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.
  3. Ensure that the queue count increases/decreases when we add/ remove nodes from nodequeue.
  4. Ensure that the changes made on the node page gets reflected on the display of node on the nodequeue/associated display areas.
  5. Ensure that all permitted user roles can rearrange the nodes (drag and drop) and this reflects on the display area.
  6. Ensure that the deleted nodes gets removed from the display area.
  7. Ensure that by default no nodes get added in the display area.
  8. 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.