Managing Polls Test Plan

This plan exercises the code used to manage polls. All test cases assume you're on the manage polls page, which is in the administration panel under Manage > Polls. In general, managing polls should feel very much like managing posts. If behavior deviates from that in an unexpected way, it is considered a bug.

Your Drafts

  1. In the Write > Write Poll create and save a poll (do not publish though).
  2. Return to the Manage > Polls tab.

Verify:

Their Drafts

  1. Log out as the current user.
  2. Log in as a different user.
  3. In the Write > Write Poll create and save a poll (do not publish though).
  4. Log out as the different user.
  5. Log in as the first user.
  6. Return to the Manage > Polls tab.

Verify:

Main list/pagination

  1. In the Write > Write Poll create and publish at least 31 polls.
  2. Return to the Manage > Polls tab.
  3. Using the navigation links at the bottom, browse through all the polls.

Verify:

Searching/pagination

  1. In the Write > Write Poll create or edit at least 31 polls that contain a specific search term, such as 'fred', in either the title or one of the options.
  2. Return to the Manage > Polls tab.
  3. In the search field, enter your search term (e.g. 'fred')
  4. Using the navigation links at the bottom, browse through all the search results.

Verify:

Search for nothing

  1. Search for a term that does not exist in a published poll

Verify:

Browse by month/pagination

  1. In the Write > Write Poll create or edit at least 31 polls that are published in a single month. Also have polls that are published in a month other than the previous month.
  2. Return to the Manage > Polls tab.
  3. From the 'Browse Month...' popup menu, select the month with at least 31 published polls.
  4. Use the navigation links at the bottom to browse through all the results.

Verify:

Create poll links

  1. Click the link at the top of the page that says 'Create a new poll'
  2. Click the link at the bottom of the page that says 'Create New Poll'

Verify:

Categories links

  1. In Write > Write Post, create a post in the 'Test' category, and publish it.
  2. In Write > Write Poll, create a poll in the 'Test' category, and publish it.
  3. Return to the Manage > Polls tab.
  4. Next to the newly published poll, click the 'Test' link in the 'Categories' column.

Verify:

Comments links

  1. On the WordPress site, go to the results of one of the polls you have published.
  2. Enter one or more comments.
  3. Return to the administration panel, and Manage > Polls.
  4. Click the link in the 'Comments' column next to the poll you added comments to.

Verify:

Edit comment

  1. Click the link in the 'Comments' column next to the poll you added comments to.
  2. Click on the 'Edit' link next to a comment.
  3. Change the text of the comment.
  4. Press the 'Edit Comment' button.

Verify:

Delete comment

  1. Click the link in the 'Comments' column next to the poll you added comments to.
  2. Click on the 'Delete' link next to a comment.
  3. When asked to confirm the delete, press 'Cancel'
  4. Click on the 'Delete' link next to a comment.
  5. When asked to confirm the delete, press 'OK'

Verify:

Unapprove/Approve comment

  1. Click the link in the 'Comments' column next to the poll you added comments to.
  2. Click on the 'Unapprove' link next to a comment.
  3. Click on the 'Approve' link next to a comment.

Verify:

View

  1. Click the 'View' link next to a published poll

Verify:

Edit

  1. Click the 'Edit' link next to a published poll

Verify:

Delete

  1. Click the 'Delete' link next to a published poll
  2. When asked to confirm the delete, press 'Cancel'
  3. Click the 'Delete' link next to a published poll
  4. When asked to confirm the delete, press 'OK'

Verify:

Ensure polls don't show up in posts

  1. In Write > Write Post, create a post and save it as a draft.
  2. In Write > Write Post, create a post and publish it.
  3. In Write > Write Poll, create a poll and save it as a draft.
  4. In Write > Write Poll, create a poll and publish it.

Verify:

Back to Main Test Plan