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
- In the Write > Write Poll create and save a poll (do not publish though).
- Return to the Manage > Polls tab.
Verify:
- The draft shows up in the 'Your Drafts' section, but not the list of polls.
Their Drafts
- Log out as the current user.
- Log in as a different user.
- In the Write > Write Poll create and save a poll (do not publish though).
- Log out as the different user.
- Log in as the first user.
- Return to the Manage > Polls tab.
Verify:
- The draft shows up in the 'Others Drafts' section, but not the list of polls.
Main list/pagination
- In the Write > Write Poll create and publish at least 31 polls.
- Return to the Manage > Polls tab.
- Using the navigation links at the bottom, browse through all the polls.
Verify:
- All the published polls show up in the list.
- The polls are sorted by publish date, and the newest are on the top.
- You can navigate to all the polls.
- The navigation links only show up when necessary. i.e. The next and back links are visible only when there is another page in that direction.
- The heading says 'Last 15 Polls' on the most recent page, but says 'Previous 15 Polls' on all other pages.
- The publish dates and authors are correct in the list.
Searching/pagination
- 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.
- Return to the Manage > Polls tab.
- In the search field, enter your search term (e.g. 'fred')
- Using the navigation links at the bottom, browse through all the search results.
Verify:
- All the published polls that have the search term show up in the list, but none that do not.
- The polls are sorted by publish date, and the newest are on the top.
- You can navigate to all the polls.
- The navigation links only show up when necessary. i.e. The next and back links are visible only when there is another page in that direction.
- The heading says 'Search for "search term"'.
- The search term is preserved on every one of the pages retrievable by the navigation links.
Search for nothing
- Search for a term that does not exist in a published poll
Verify:
- The page shows 'No polls found'
Browse by month/pagination
- 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.
- Return to the Manage > Polls tab.
- From the 'Browse Month...' popup menu, select the month with at least 31 published polls.
- Use the navigation links at the bottom to browse through all the results.
Verify:
- The 'Browse Month...' popup menu lists all the months polls have been published in.
- All the polls in a month show up when that month is selected from 'Browse Month...'
- The navigation links only show up when necessary. i.e. The next and back links are visible only when there is another page in that direction.
- The heading is the month and year that you selected.
- You can navigate to all the polls in the selected month.
Create poll links
- Click the link at the top of the page that says 'Create a new poll'
- Click the link at the bottom of the page that says 'Create New Poll'
Verify:
- Both links should take you to Write > Write Poll with a new poll.
Categories links
- In Write > Write Post, create a post in the 'Test' category, and publish it.
- In Write > Write Poll, create a poll in the 'Test' category, and publish it.
- Return to the Manage > Polls tab.
- Next to the newly published poll, click the 'Test' link in the 'Categories' column.
Verify:
- You are taken to the site, where the 'Test' category is select.
- Both the published post and poll are listed, as well as any other polls/posts that are in the 'Test' category, but none that aren't.
Comments links
- On the WordPress site, go to the results of one of the polls you have published.
- Enter one or more comments.
- Return to the administration panel, and Manage > Polls.
- Click the link in the 'Comments' column next to the poll you added comments to.
Verify:
- The link in the 'Comments' column is the number of comments posted to the poll results.
- When clicked, the link removes all polls except for the one you selected.
- All the comments are listed, with options to edit, delete, and unapprove them.
Edit comment
- Click the link in the 'Comments' column next to the poll you added comments to.
- Click on the 'Edit' link next to a comment.
- Change the text of the comment.
- Press the 'Edit Comment' button.
Verify:
- Clicking the 'Edit' link took you to a new 'Edit Comment' page.
- Clicking the 'Edit Comment' button returned you to the Manage > Polls tab.
- The new text of the comment was saved.
Delete comment
- Click the link in the 'Comments' column next to the poll you added comments to.
- Click on the 'Delete' link next to a comment.
- When asked to confirm the delete, press 'Cancel'
- Click on the 'Delete' link next to a comment.
- When asked to confirm the delete, press 'OK'
Verify:
- Clicking the 'Delete' link always asks you to confirm the delete.
- Canceling the delete does not delete the comment.
- OK'ing the delete deletes the comment.
Unapprove/Approve comment
- Click the link in the 'Comments' column next to the poll you added comments to.
- Click on the 'Unapprove' link next to a comment.
- Click on the 'Approve' link next to a comment.
Verify:
- When clicking 'Unapprove' the comment becomes grayed, and the 'Unapprove' link becomes 'Approve'
- When clicking 'Approve' the comment un-grays, and the 'Approve' link becomes 'Unapprove.'
View
- Click the 'View' link next to a published poll
Verify:
- You are taken to the WordPress site, to the page of the poll results.
Edit
- Click the 'Edit' link next to a published poll
Verify:
- You are taken to Write > Write Poll, with the selected poll brought up.
Delete
- Click the 'Delete' link next to a published poll
- When asked to confirm the delete, press 'Cancel'
- Click the 'Delete' link next to a published poll
- When asked to confirm the delete, press 'OK'
Verify:
- Clicking the 'Delete' link always asks you to confirm the delete.
- Canceling the delete does not delete the poll.
- OK'ing the delete deletes the poll.
Ensure polls don't show up in posts
- In Write > Write Post, create a post and save it as a draft.
- In Write > Write Post, create a post and publish it.
- In Write > Write Poll, create a poll and save it as a draft.
- In Write > Write Poll, create a poll and publish it.
Verify:
- Verify that in Manage > Posts, no polls show up in the drafts or published list.
- Verify that in Manage > Polls, no posts show up in the drafts or published list.
Back to Main Test Plan