Writing a Poll Test Plan

This plan exercises the code used to create and edit polls. All test cases assume you're on the Write Poll page, which is in the administration panel under Write > Write Poll. In general, editing a poll should feel very much like editing a post. If behavior deviates from that in an unexpected way, it is considered a bug.

Adding an option

  1. Press the Write > Write Poll tab.
  2. Enter a title for the new poll.
  3. Type an option in the option field.
  4. Press enter or press the 'Add' button.

Verify:

Creating new poll

  1. Click on Write > Write Poll tab to create a new poll.
  2. Enter a poll title.
  3. Press enter or press the 'Save and continue editing' button.

Verify:

Clicking on a draft

  1. Click on the draft created in the 'Adding an option' testcase inside the 'Your drafts' section.

Verify:

Changing all the settings

  1. Change the various settings listed here, to whatever you'd like.

  2. Press 'Save and continue editing'

Verify:

Adding custom field

  1. Type in a key and value (e.g. flintstone, fred) in the custom field section
  2. Press 'Add custom field'

Verify:

Editing custom field

  1. Change the previously entered custom field to something new (e.g. rubble, barney)
  2. Press the corresponding 'Update' button.

Verify:

Deleting custom field

  1. Press the 'Delete' button next to the custom field

Verify:

Save

  1. Change the poll title
  2. Press the 'Save' button.

Verify:

Editing an option

  1. Click the 'Edit' button on a poll option. Verify the 'Edit Poll Option' page is brought up.
  2. Change the text and votes.
  3. Press 'Cancel'. Verify that you are taken back to the 'Write Poll' page, with the option unchanged.
  4. Click the 'Edit' button on a poll option. Verify the 'Edit Poll Option' page is brought up.
  5. Change the text and votes.
  6. Press 'Save' or hit enter.

Verify:

Reordering an option

  1. Enter at least four options.
  2. Press the 'Up' button next to an option, once.
  3. Press the 'Down' button next to an option, twice.

Verify:

Deleting an option

  1. Press the 'Delete' button next to an option.
  2. When asked to confirm the delete, press Cancel.
  3. Press the 'Delete' button next to an option.
  4. When asked to confirm the delete, press OK.

Verify:

Publish

  1. Press the 'Publish' button.

Verify:

Deleting a poll

  1. Select your second draft from the 'Your drafts' section.
  2. Press 'Delete this poll'.
  3. When asked to confirm the delete, press Cancel.
  4. Press 'Delete this poll'.
  5. When asked to confirm the delete, press OK.

Verify:

Back to Main Test Plan