Poll Results Test Plan
This test plan exercises the code used to generate poll results.
Display
- In the Write > Write Poll create and publish a poll.
- Visit the site, and click the 'Results' link inside the voting booth.
Verify:
- The name of the poll is displayed at the top, prepended with the words 'Poll Results'
- Each option is listed, with the following: the name of the option, a bar showing the relative size of the votes for the option, the total number of votes for the option, and the percentage of votes the option received.
- The bar and percentage text are in the color shown in the administration panel under Options > PollPress.
- The total number of votes is shown in the bottom right of the graph.
- The poll results have the rest of information a post normally would have, such as which category it was filed in, when it was posted, and comments.
Displaying votes
- Using Write > Write Poll to edit the poll, modify an option such that it has 0 votes.
- Still using Write > Write Poll to edit the poll, modify another option such that it has 1 vote.
- Still using Write > Write Poll to edit the poll, modify yet another option such that it has 3 or more votes.
- Visit the site, and click the 'Results' link inside the voting booth.
Verify:
- The bar graphs look relatively correct. i.e. 0 is the smallest, then 1, then 3 or more. 0 and 1 should not look the same.
Back to Main Test Plan