Skip to content

Instantly share code, notes, and snippets.

@lfender6445
Forked from colinrymer/gist:5798469
Last active December 18, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfender6445/5798702 to your computer and use it in GitHub Desktop.
Save lfender6445/5798702 to your computer and use it in GitHub Desktop.

Product management has come up with the idea of allowing website users to leave reviews and ratings for listings. This feedback will be entered similar to how leads are submitted, but the user must enter the following information:

  • name
  • email address
  • phone number
  • rating from 1 to 5
  • optional review

In addition to the above information, a CAPTCHA presenting three different apartment complexes (only one of which is correct) is used in conjunction with the user’s name and phone number to determine whether or not the user actually lived at the listing. After validating and verifying the information, the user gets redirected to a thank you page. After a review is successfully submitted, it will show up as the first entry in the reviews for the listing. Pre-existing “certified resident” reviews will be integrated along with reviews that are submitted through the site. On the search results page, users can sort on rating type or filter on review type and rating. A link on each listing will take the user to the review area, which is presented as the sixth tab on the listing’s details page.

Feature: User Reviews // poor feature, needs improvement
Scenario: As a user leaving a review for my property //need to capture validation for form as whole, leave out capy stuff
Given I am on the review page
and I provide name, email address, phone number, rating from 1 to 5, optional review
When I press submit
Then I must select a captcha associated with my phone number and property
When I select the captcha representing my property
and the captcha validates
Then I will be redirected to the thank you page
Scenario: As a user viewing reviews after posting
Given I revisit the review page
Then it will show up as first entry in reviews for the listing
and will be visible alongside previous certified reviews
Scenario: As a user sorting or filtering by reviews
When I visit the search page
Then i can sort on or filter on review type or rating
and will see link on each search listing
When I click this link
Then I am taken to the 'review' tab on the listings detail page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment